我刚测了,不行啊,dialog还没关掉,就执行dialog.show()下面的语句了,这是怎么回事啊?

解决方案 »

  1.   

    public JDialog(Frame owner,
                   boolean modal)
            throws HeadlessExceptionCreates a modal or non-modal dialog without a title and with the specified owner Frame. If owner is null, a shared, hidden frame will be set as the owner of the dialog. This constructor sets the component's locale property to the value returned by JComponent.getDefaultLocale. Parameters:owner - the Frame from which the dialog is displayedmodal - true for a modal dialog, false for one that allows others windows to be active at the same time
      

  2.   

    我试了一下是可以的,不过你去检查以下你SettingConfigDialog 的构造函数,你这个两个参数的构造函数是否调用了jdialog中的三个参数的标准构造函数