From adefef247d4571340e0ca143235c883630cf8e18 Mon Sep 17 00:00:00 2001 From: lov3b Date: Wed, 30 Mar 2022 17:38:39 +0200 Subject: [PATCH] JFrame a field of Schack --- src/schack/Schack.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/schack/Schack.java b/src/schack/Schack.java index 750b7e8..f39cb2c 100644 --- a/src/schack/Schack.java +++ b/src/schack/Schack.java @@ -18,6 +18,8 @@ import javax.swing.UIManager; */ public class Schack { + JFrame frame; + public Schack() throws IOException { // Set theme try { @@ -32,7 +34,7 @@ public class Schack { } } - JFrame frame = new JFrame(); + frame = new JFrame(); frame.setTitle("Schack"); frame.setAlwaysOnTop(false); frame.setResizable(false);