From 772386ed2caf0ede57efdd9ac643fe9641c8343f Mon Sep 17 00:00:00 2001 From: fdai7431 Date: Mon, 16 Jan 2023 12:23:14 +0100 Subject: [PATCH] [GamelauncherMain Class]: Actionlistener fuer Button --- .../JavaGamelauncher/GamelauncherMain.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/GamelauncherMain.java b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/GamelauncherMain.java index a06ae9c..d2499b2 100644 --- a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/GamelauncherMain.java +++ b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/GamelauncherMain.java @@ -102,6 +102,17 @@ public class GamelauncherMain extends JFrame {//class } }); + btnMouse.addActionListener(new ActionListener() { + + @Override + public void actionPerformed(ActionEvent e) { + // TODO Auto-generated method stub + + MouseGame frameMouse = new MouseGame(); + //frameMouse.setVisible(true); + } + }); + }//end standardkonstruktor