|
@ -1,5 +1,8 @@ |
|
|
import javax.swing.*; |
|
|
import javax.swing.*; |
|
|
import javax.swing.border.EmptyBorder; |
|
|
import javax.swing.border.EmptyBorder; |
|
|
|
|
|
import java.awt.*; |
|
|
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
|
|
import java.awt.event.ActionListener; |
|
|
|
|
|
|
|
|
public class Main { |
|
|
public class Main { |
|
|
|
|
|
|
|
@ -10,15 +13,12 @@ public class Main { |
|
|
@Override |
|
|
@Override |
|
|
public void run() { |
|
|
public void run() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JFrame main = new JFrame(); |
|
|
JFrame main = new JFrame(); |
|
|
main.setLayout(null); |
|
|
main.setLayout(null); |
|
|
main.setVisible(true); |
|
|
main.setVisible(true); |
|
|
main.setBounds(300, 300, 500, 500); |
|
|
|
|
|
|
|
|
|
|
|
JPanel root = new JPanel(); |
|
|
|
|
|
|
|
|
main.setBounds(300, 200, 500, 500); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main.setContentPane(root); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|