From b03af88855e805f849024404ae407a9c26a39489 Mon Sep 17 00:00:00 2001 From: fdai7460 Date: Mon, 9 Jan 2023 10:54:20 +0100 Subject: [PATCH] DTSUD-44 builded Back Button --- sudokuExample/src/Main.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sudokuExample/src/Main.java b/sudokuExample/src/Main.java index d8147bf..def66b0 100644 --- a/sudokuExample/src/Main.java +++ b/sudokuExample/src/Main.java @@ -19,8 +19,19 @@ public class Main { main.setBounds(300, 200, 500, 500); main.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + JPanel rootPanel = new JPanel(); + rootPanel.setVisible(true); + rootPanel.setBounds(0, 0, 500, 500); + rootPanel.setBackground(Color.LIGHT_GRAY); + rootPanel.setLayout(null); + main.setContentPane(rootPanel); + JButton back = new JButton(); + back.setVisible(true); + back.setBounds(5, 5, 100, 25); + rootPanel.add(back); + back.setText("Back"); } });