Java Swing与线程的结合应用(三)(二)

2014-11-24 08:51:34 · 作者: · 浏览: 1
(JFrame.EXIT_ON_CLOSE);
frame.setBounds(100, 100, 300, 200);
frame.setVisible(true); // display the frame

/*
* because g will be null if Graphics g = container.getGraphics();
* before the display of the related component
*/
frame.paintJFrame();
}

}

作者:Gaowen_HAN