Browse Source

[GamelauncherMain Class]: Weitere Definitionen fuer Button

remotes/origin/textadventure
fdai7431 2 years ago
parent
commit
b768691cf5
  1. 16
      JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/GamelauncherMain.java

16
JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/GamelauncherMain.java

@ -2,6 +2,7 @@ package de.hs_fulda.gruppenprojekt.JavaGamelauncher;
import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Font;
import javax.swing.JButton;
import javax.swing.JFrame;
@ -68,6 +69,21 @@ public class GamelauncherMain extends JFrame {//class
JButton btnTikTakToe = new JButton("TikTakToe Starten");
JButton btnTextadventure = new JButton("Textadventure Starten");
btnSnake.setBackground(Color.PINK);
btnMouse.setBackground(Color.PINK);
btnTikTakToe.setBackground(Color.PINK);
btnTextadventure.setBackground(Color.PINK);
btnSnake.setFont(new Font("Consolas", Font.PLAIN, 12));
btnMouse.setFont(new Font("Consolas", Font.PLAIN, 12));
btnTikTakToe.setFont(new Font("Consolas", Font.PLAIN, 12));
btnTextadventure.setFont(new Font("Consolas", Font.PLAIN, 12));
btnSnake.setBounds(10, 500, 300, 25);
btnTikTakToe.setBounds(630, 500, 300, 25);
btnMouse.setBounds(320, 500, 300, 25);
btnTextadventure.setBounds(940, 500, 300, 25);
}//end standardkonstruktor
}//end class
Loading…
Cancel
Save