Browse Source

DTSUD-49

builded retry Button
remotes/origin/develop
fdai7460 2 years ago
parent
commit
ea040453fe
  1. 8
      sudokuExample/src/Main.java

8
sudokuExample/src/Main.java

@ -26,7 +26,7 @@ public class Main {
JFrame main = new JFrame(); JFrame main = new JFrame();
main.setLayout(null); main.setLayout(null);
main.setVisible(true); main.setVisible(true);
main.setBounds(300, 200, 500, 500);
main.setBounds(300, 200, 500, 600);
main.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); main.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JPanel rootPanel = new JPanel(); JPanel rootPanel = new JPanel();
@ -53,6 +53,12 @@ public class Main {
newButton.setText("New"); newButton.setText("New");
rootPanel.add(newButton); rootPanel.add(newButton);
JButton retryButton = new JButton();
retryButton.setVisible(true);
retryButton.setText("Retry");
retryButton.setBounds(5, 525, 100, 25);
rootPanel.add(retryButton);
} }
}); });
} }

Loading…
Cancel
Save