返回列表 發帖
  1. package zz;

  2. import javax.swing.JFrame;
  3. public class zz {

  4.         public static void main(String[] args) {
  5.                 JFrame x=new JFrame("我的第一個視窗");
  6.                 x.setBounds(100, 100, 250, 200);
  7.                 x.setVisible(true);
  8.                 x.setResizable(false);
  9.                 x.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  10.                 JFrame y=new JFrame("我的第一個視窗");
  11.                 y.setBounds(300, 100, 250, 200);
  12.                 y.setVisible(true);
  13.                 y.setResizable(false);
  14.                 y.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
  15.                 JFrame z=new JFrame("我的第一個視窗");
  16.                 z.setBounds(500, 100, 250, 200);
  17.                 z.setVisible(true);
  18.                 z.setResizable(false);
  19.                 z.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
  20.         }

  21. }
複製代碼

TOP

返回列表