From ea040453fe1d7ab1812541cbf648e1d90e63c11b Mon Sep 17 00:00:00 2001 From: fdai7460 Date: Tue, 10 Jan 2023 17:20:11 +0100 Subject: [PATCH] DTSUD-49 builded retry Button --- sudokuExample/src/Main.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sudokuExample/src/Main.java b/sudokuExample/src/Main.java index e02ffa2..07fdd00 100644 --- a/sudokuExample/src/Main.java +++ b/sudokuExample/src/Main.java @@ -26,7 +26,7 @@ public class Main { JFrame main = new JFrame(); main.setLayout(null); main.setVisible(true); - main.setBounds(300, 200, 500, 500); + main.setBounds(300, 200, 500, 600); main.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JPanel rootPanel = new JPanel(); @@ -53,6 +53,12 @@ public class Main { newButton.setText("New"); rootPanel.add(newButton); + JButton retryButton = new JButton(); + retryButton.setVisible(true); + retryButton.setText("Retry"); + retryButton.setBounds(5, 525, 100, 25); + rootPanel.add(retryButton); + } }); }