返回列表 發帖
  1. import javax.swing.*;
  2. public class AAA {

  3.         public static void main(String[] args)
  4.         {
  5.                 JFrame x=new JFrame("1111111");
  6.                 JFrame y=new JFrame("2222222");
  7.                 JFrame z=new JFrame("3333333");
  8.                 x.setBounds(100, 100,200, 100);
  9.                 x.setVisible(true);
  10.                 x.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  11.                 x.setResizable(false);
  12.                 y.setBounds(300, 100,200, 100);
  13.                 y.setVisible(true);
  14.                 y.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  15.                 y.setResizable(false);
  16.                 z.setBounds(500, 100,200, 100);
  17.                 z.setVisible(true);
  18.                 z.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  19.                 z.setResizable(false);
  20.         }
  21. }
複製代碼

TOP

返回列表