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

  3.         public static void main(String[] args) {
  4.         JFrame j=new JFrame("new joij;OUHSpiughsd");
  5.         JFrame a=new JFrame("new");
  6.         JFrame b=new JFrame("joij;OUHSpiughsd");
  7.         j.setBounds(100,100,200,200);
  8.         j.setVisible(true);
  9.         j.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  10.         a.setBounds(300,100,200,200);
  11.         a.setVisible(true);
  12.         a.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
  13.         b.setBounds(500,100,200,200);
  14.         b.setVisible(true);
  15.         b.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
  16.         }

  17. }
複製代碼

TOP

返回列表