From 6832a95aa4032af2ed93b9b0011df2514ec2359d Mon Sep 17 00:00:00 2001 From: fdai7431 Date: Mon, 16 Jan 2023 12:24:26 +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 67f7184..44aaa48 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 @@ -124,6 +124,17 @@ public class GamelauncherMain extends JFrame {//class } }); + btnTextadventure.addActionListener(new ActionListener() { + + @Override + public void actionPerformed(ActionEvent e) { + // TODO Auto-generated method stub + + //TextadventureGame frameTextadventure = new TextadventureGame(); + //frameTextadventure.setVisible(true); + } + }); + }//end standardkonstruktor