你就把它当成Java的BUG吗,你把所有的窗口最小化一次,再点Java程序,模态窗口就会出现了

解决方案 »

  1.   

    看这里:
    http://community.csdn.net/Expert/topic/2980/2980897.xml?temp=.5967523
      

  2.   

    没发现此问题,测试大代码如下
    public class TestFrame extends JFrame
    {
    public TestFrame()
    {
    JButton btn = new JButton("Show Dialog");
    btn.addActionListener(new ActionListener()
    {
    public void actionPerformed(ActionEvent evt)
    {
    new JDialog(TestFrame.this, true).show();
    }
    });
    getContentPane().add(btn, "Center");
    }

    public void paint(Graphics g)
    {
    super.paint(g);
    }

    public static void main(String[] args)
    {
    JFrame f = new TestFrame();
    f.setDefaultCloseOperation(EXIT_ON_CLOSE);
    f.setSize(640, 480);
    f.show();
    }
    }