Browse Source

added buttons

remotes/origin/develop
fdai6499 2 years ago
parent
commit
f716d8797b
  1. 12
      sudokuExample/src/Main2.java

12
sudokuExample/src/Main2.java

@ -1,10 +1,13 @@
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import java.awt.*;
public class Main2 {
public static void main(String[] args) {
java.awt.EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
@ -16,6 +19,15 @@ public class Main2 {
yPanel.setLayout(new BoxLayout(yPanel, BoxLayout.Y_AXIS));
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++) {
JPanel xPanel = new JPanel();

Loading…
Cancel
Save