|
@ -1,10 +1,13 @@ |
|
|
import javax.swing.*; |
|
|
import javax.swing.*; |
|
|
import javax.swing.border.EmptyBorder; |
|
|
import javax.swing.border.EmptyBorder; |
|
|
|
|
|
import java.awt.*; |
|
|
|
|
|
|
|
|
public class Main2 { |
|
|
public class Main2 { |
|
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
public static void main(String[] args) { |
|
|
|
|
|
|
|
|
java.awt.EventQueue.invokeLater(new Runnable() { |
|
|
java.awt.EventQueue.invokeLater(new Runnable() { |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void run() { |
|
|
public void run() { |
|
|
|
|
|
|
|
@ -16,6 +19,15 @@ public class Main2 { |
|
|
yPanel.setLayout(new BoxLayout(yPanel, BoxLayout.Y_AXIS)); |
|
|
yPanel.setLayout(new BoxLayout(yPanel, BoxLayout.Y_AXIS)); |
|
|
yPanel.setBorder(new EmptyBorder(1, 0, 1,0)); |
|
|
yPanel.setBorder(new EmptyBorder(1, 0, 1,0)); |
|
|
|
|
|
|
|
|
|
|
|
JButton jButton1 = new JButton(); |
|
|
|
|
|
jButton1.setText("Test Button 1"); |
|
|
|
|
|
|
|
|
|
|
|
yPanel.add(jButton1); |
|
|
|
|
|
|
|
|
|
|
|
JButton jButton2 = new JButton(); |
|
|
|
|
|
jButton2.setText("Test Button 2"); |
|
|
|
|
|
yPanel.add(jButton2); |
|
|
|
|
|
|
|
|
for (int i = 0; i < 9; i++) { |
|
|
for (int i = 0; i < 9; i++) { |
|
|
|
|
|
|
|
|
JPanel xPanel = new JPanel(); |
|
|
JPanel xPanel = new JPanel(); |
|
|