JFrame 示例代码: //JFrame窗口 public class JFrameDemo01 { public static void main(String[] args) { new MyJFrame().init