1
0

LS03-02-2 | Designvereinheitlichungen

This commit is contained in:
2021-05-28 10:12:50 +02:00
parent 1265df634c
commit 39b80c1bf7
3 changed files with 31 additions and 6 deletions
@@ -4,12 +4,18 @@
<constraints> <constraints>
<xy x="20" y="20" width="501" height="400"/> <xy x="20" y="20" width="501" height="400"/>
</constraints> </constraints>
<properties/> <properties>
<background color="-16777216"/>
<foreground color="-16777216"/>
</properties>
<border type="none"/> <border type="none"/>
<children> <children>
<grid id="6dda1" layout-manager="FlowLayout" hgap="5" vgap="5" flow-align="1"> <grid id="6dda1" layout-manager="FlowLayout" hgap="5" vgap="5" flow-align="1">
<constraints border-constraint="South"/> <constraints border-constraint="South"/>
<properties/> <properties>
<background color="-16777216"/>
<foreground color="-16777216"/>
</properties>
<border type="none"/> <border type="none"/>
<children> <children>
<component id="cdd2d" class="javax.swing.JButton" binding="btnPlay"> <component id="cdd2d" class="javax.swing.JButton" binding="btnPlay">
@@ -41,19 +47,30 @@
<component id="fc00" class="javax.swing.JLabel"> <component id="fc00" class="javax.swing.JLabel">
<constraints border-constraint="North"/> <constraints border-constraint="North"/>
<properties> <properties>
<enabled value="true"/>
<font size="18" style="1"/> <font size="18" style="1"/>
<foreground color="-16711936"/>
<horizontalAlignment value="0"/> <horizontalAlignment value="0"/>
<text value="Levelauswahl"/> <text value="Levelauswahl"/>
</properties> </properties>
</component> </component>
<scrollpane id="231d4"> <scrollpane id="231d4" binding="scrollPane">
<constraints border-constraint="Center"/> <constraints border-constraint="Center"/>
<properties/> <properties>
<background color="-16777216"/>
<foreground color="-16711936"/>
</properties>
<border type="none"/> <border type="none"/>
<children> <children>
<component id="28513" class="javax.swing.JTable" binding="tblLevels"> <component id="28513" class="javax.swing.JTable" binding="tblLevels">
<constraints/> <constraints/>
<properties/> <properties>
<background color="-16777216"/>
<foreground color="-16711936"/>
<gridColor color="-16777216"/>
<selectionBackground color="-16711936"/>
<selectionForeground color="-16777216"/>
</properties>
</component> </component>
</children> </children>
</scrollpane> </scrollpane>
@@ -21,6 +21,7 @@ public class LevelChoice {
private JTable tblLevels; private JTable tblLevels;
private JButton btnDeleteLevel; private JButton btnDeleteLevel;
private JButton btnPlay; private JButton btnPlay;
private JScrollPane scrollPane;
private final LevelController lvlControl; private final LevelController lvlControl;
private final LeveldesignWindow leveldesignWindow; private final LeveldesignWindow leveldesignWindow;
@@ -71,6 +72,11 @@ public class LevelChoice {
btnUpdateLevel.setVisible(false); btnUpdateLevel.setVisible(false);
btnDeleteLevel.setVisible(false); btnDeleteLevel.setVisible(false);
} }
scrollPane.getViewport().setBackground(Color.BLACK);
tblLevels.getTableHeader().setOpaque(false);
tblLevels.getTableHeader().setBackground(Color.BLACK);
tblLevels.getTableHeader().setForeground(Color.YELLOW);
} }
private String[][] getLevelsAsTableModel() { private String[][] getLevelsAsTableModel() {
@@ -1,6 +1,6 @@
package de.oszimt.ls.aliendefence.view.menue; package de.oszimt.ls.aliendefence.view.menue;
import java.awt.CardLayout; import java.awt.*;
import javax.swing.JFrame; import javax.swing.JFrame;
import javax.swing.JPanel; import javax.swing.JPanel;
@@ -35,6 +35,8 @@ public class LeveldesignWindow extends JFrame {
setBounds(100, 100, 1200, 800); setBounds(100, 100, 1200, 800);
contentPane = new JPanel(); contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
contentPane.setBackground(Color.BLACK);
setContentPane(contentPane); setContentPane(contentPane);
this.cards = new CardLayout(); this.cards = new CardLayout();
contentPane.setLayout(cards); contentPane.setLayout(cards);