- import javax.swing.JFrame;
- public class ATB8 {
- public static void main(String[] args) {
- JFrame j=new JFrame("new joij;OUHSpiughsd");
- JFrame a=new JFrame("new");
- JFrame b=new JFrame("joij;OUHSpiughsd");
- j.setBounds(100,100,200,200);
- j.setVisible(true);
- j.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- a.setBounds(300,100,200,200);
- a.setVisible(true);
- a.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
- b.setBounds(500,100,200,200);
- b.setVisible(true);
- b.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
- }
- }
複製代碼 |