OntologyInstanceDialog.java 文件源码

java
阅读 33 收藏 0 点赞 0 评论 0

项目:AgentWorkbench 作者:
/**
     * This method initialises this dialog.
     */
    private void initialize() {

        this.setSize(600, 500);
        this.setModal(true);
        this.setTitle(Language.translate("Ontologie-Klassen initialisieren"));
        this.setContentPane(getJContentPane());

//      this.setAlwaysOnTop(true);
        this.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
        this.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent evt) {
                setCancelled(true);
                setVisible(false);
            }
        });
        // --- Set the IconImage ----------------------------------
        if (OntologyVisualisationConfiguration.getApplicationIconImage()!=null) this.setIconImage(OntologyVisualisationConfiguration.getApplicationIconImage());

        // --- Dialog zentrieren ------------------------------------
        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); 
        int top = (screenSize.height - this.getHeight()) / 2; 
        int left = (screenSize.width - this.getWidth()) / 2; 
        this.setLocation(left, top);    

    }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号