Tag.java 文件源码

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

项目:CommandGenerator 作者:
/** Displays the Tag panel. Returns true if the user canceled. */
protected boolean showPanel()
{
    isEmpty = true;

    panel.addHierarchyListener(new HierarchyListener() {
        @Override
        public void hierarchyChanged(HierarchyEvent e)
        {
            Window window = SwingUtilities.getWindowAncestor(panel);
            if (window instanceof Dialog)
            {
                Dialog dialog = (Dialog) window;
                if (!dialog.isResizable())
                {
                    dialog.setResizable(true);
                }
            }
        }
    });
    boolean cancel = JOptionPane.showConfirmDialog(null, panel, Generator.translate("GUI:tag.add") + " : " + getName(), JOptionPane.OK_CANCEL_OPTION) != JOptionPane.OK_OPTION;
    if (!cancel) isEmpty = false;
    return cancel;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号