返回列表 發帖
  1. package ch01;

  2. import javax.swing.JFrame;
  3. public class ch01 {
  4.         public static void main(String[] args) {
  5.                 JFrame fm=new JFrame();
  6.             fm.setTitle("視窗1");
  7.                 fm.setLocation(100, 100);
  8.                 fm.setSize(250,200);
  9.                 fm.setVisible(true);
  10.         fm.setResizable(true);
  11.         fm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  12.         }
  13. }
複製代碼

TOP

返回列表