From 0c80bf9f2b58ba00523f88b350e102cebed77999 Mon Sep 17 00:00:00 2001 From: fdai7431 Date: Mon, 16 Jan 2023 12:27:03 +0100 Subject: [PATCH] [GamelauncherMain Class]: JLabel Initialisiert --- .../JavaGamelauncher/GamelauncherMain.java | 35 ++++++++++++++++--- 1 file changed, 31 insertions(+), 4 deletions(-) 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 44aaa48..0a2d1f2 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 @@ -1,15 +1,38 @@ package de.hs_fulda.gruppenprojekt.JavaGamelauncher; + +import java.awt.AWTException; +import java.awt.BorderLayout; +import java.awt.CardLayout; import java.awt.Color; -import java.awt.EventQueue; -import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; - +import java.awt.EventQueue; +import java.awt.FlowLayout; +import java.awt.Font; +import java.awt.image.BufferedImage; +import java.awt.Image; +import java.awt.Taskbar; +import java.awt.Toolkit; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.IOException; +import java.lang.System.Logger.Level; +import java.net.MalformedURLException; +import java.net.URL; +import java.util.logging.Logger; +import javax.imageio.ImageIO; +import javax.swing.border.EmptyBorder; +import javax.swing.GroupLayout.Alignment; +import javax.swing.GroupLayout; +import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JFrame; +import javax.swing.JLabel; import javax.swing.JPanel; -import javax.swing.border.EmptyBorder; +import javax.swing.LayoutStyle.ComponentPlacement; +import javax.swing.SwingConstants; public class GamelauncherMain extends JFrame {//class @@ -135,6 +158,10 @@ public class GamelauncherMain extends JFrame {//class } }); + JLabel AdSnake = new JLabel(""); + JLabel AdMouse = new JLabel(""); + JLabel AdTikTakToe = new JLabel(""); + JLabel AdTextadventure = new JLabel(""); }//end standardkonstruktor