返回列表 發帖
  1. package ch68;
  2. import javax.swing.JFrame;
  3. public class ch68 {
  4.         public static void main(String[] args) {
  5.                 JFrame fm=new JFrame();
  6.                 fm.setTitle("My First GUI App");
  7.                 fm.setLocation(100, 100);
  8.                 fm.setSize(250, 200);
  9.                 fm.setVisible(true);
  10.                 fm.setResizable(false);
  11.                 fm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  12.         }
  13. }
複製代碼

TOP

返回列表