Verschönerungen

main
Matias Mas Viehl 2025-06-25 09:39:15 +02:00
parent 9588847c72
commit 201497b4a8
2 changed files with 9 additions and 9 deletions

View File

@ -25,7 +25,7 @@ public class ModeSelectionFrame extends JFrame {
// Frame-Eigenschaften // Frame-Eigenschaften
setTitle("Modusauswahl"); setTitle("Modusauswahl");
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
setBounds(100, 100, 500, 500); setBounds(100, 100, 600, 600);
setResizable(true); setResizable(true);
setAlwaysOnTop(true); setAlwaysOnTop(true);

View File

@ -399,40 +399,40 @@ public class SpielFrame extends JFrame {
this.controlPanel.add(quicksave); this.controlPanel.add(quicksave);
// ----- ViewFirstButton ----- // ----- ViewFirstButton -----
JButton viewFirstButton = new JButton("<<-"); JButton viewFirstButton = new JButton("<<");
viewFirstButton.setBackground(Color.LIGHT_GRAY); viewFirstButton.setBackground(Color.LIGHT_GRAY);
viewFirstButton.setForeground(Color.BLACK); viewFirstButton.setForeground(Color.BLACK);
viewFirstButton.setFont(new Font("Tahoma", Font.BOLD, 16)); viewFirstButton.setFont(new Font("Calibri", Font.BOLD, 16));
viewFirstButton.setAlignmentX(CENTER_ALIGNMENT); viewFirstButton.setAlignmentX(CENTER_ALIGNMENT);
viewFirstButton.setEnabled(false); viewFirstButton.setEnabled(false);
viewFirstButton.addActionListener(new ButtonViewFirstListener(this.game, this)); viewFirstButton.addActionListener(new ButtonViewFirstListener(this.game, this));
this.controlPanel.add(viewFirstButton); this.controlPanel.add(viewFirstButton);
// ----- ViewBackButton ----- // ----- ViewBackButton -----
JButton viewBackButton = new JButton("<-"); JButton viewBackButton = new JButton("");
viewBackButton.setBackground(Color.LIGHT_GRAY); viewBackButton.setBackground(Color.LIGHT_GRAY);
viewBackButton.setForeground(Color.BLACK); viewBackButton.setForeground(Color.BLACK);
viewBackButton.setFont(new Font("Tahoma", Font.BOLD, 16)); viewBackButton.setFont(new Font("Calibri", Font.BOLD, 16));
viewBackButton.setAlignmentX(CENTER_ALIGNMENT); viewBackButton.setAlignmentX(CENTER_ALIGNMENT);
viewBackButton.setEnabled(false); viewBackButton.setEnabled(false);
viewBackButton.addActionListener(new ButtonViewBackListener(this.game, this)); viewBackButton.addActionListener(new ButtonViewBackListener(this.game, this));
this.controlPanel.add(viewBackButton); this.controlPanel.add(viewBackButton);
// ----- ViewForwardButton ----- // ----- ViewForwardButton -----
JButton viewForwardButton = new JButton("->"); JButton viewForwardButton = new JButton("");
viewForwardButton.setBackground(Color.LIGHT_GRAY); viewForwardButton.setBackground(Color.LIGHT_GRAY);
viewForwardButton.setForeground(Color.BLACK); viewForwardButton.setForeground(Color.BLACK);
viewForwardButton.setFont(new Font("Tahoma", Font.BOLD, 16)); viewForwardButton.setFont(new Font("Calibri", Font.BOLD, 16));
viewForwardButton.setAlignmentX(CENTER_ALIGNMENT); viewForwardButton.setAlignmentX(CENTER_ALIGNMENT);
viewForwardButton.setEnabled(false); viewForwardButton.setEnabled(false);
viewForwardButton.addActionListener(new ButtonViewForwardListener(this.game, this)); viewForwardButton.addActionListener(new ButtonViewForwardListener(this.game, this));
this.controlPanel.add(viewForwardButton); this.controlPanel.add(viewForwardButton);
// ----- ViewLastButton ----- // ----- ViewLastButton -----
JButton viewLastButton = new JButton("->>"); JButton viewLastButton = new JButton(">>");
viewLastButton.setBackground(Color.LIGHT_GRAY); viewLastButton.setBackground(Color.LIGHT_GRAY);
viewLastButton.setForeground(Color.BLACK); viewLastButton.setForeground(Color.BLACK);
viewLastButton.setFont(new Font("Tahoma", Font.BOLD, 16)); viewLastButton.setFont(new Font("Calibri", Font.BOLD, 16));
viewLastButton.setAlignmentX(CENTER_ALIGNMENT); viewLastButton.setAlignmentX(CENTER_ALIGNMENT);
viewLastButton.setEnabled(false); viewLastButton.setEnabled(false);
viewLastButton.addActionListener(new ButtonViewLastListener(this.game, this)); viewLastButton.addActionListener(new ButtonViewLastListener(this.game, this));