Dashboard Gegnerkarten
This commit is contained in:
@@ -67,11 +67,14 @@ public class Dashboard_GUI extends JPanel{
|
|||||||
private JButton btnkreuz = new JButton("Kreuz");
|
private JButton btnkreuz = new JButton("Kreuz");
|
||||||
private final JLabel label_final = new JLabel("Spiel beendet");
|
private final JLabel label_final = new JLabel("Spiel beendet");
|
||||||
private final JScrollPane gegnerkartenpane = new JScrollPane();
|
private final JScrollPane gegnerkartenpane = new JScrollPane();
|
||||||
JPanel gegnerkarten = new JPanel();
|
private final JPanel gegnerkarten = new JPanel();
|
||||||
|
|
||||||
public Dashboard_GUI(Spiel Spiel, Texturenpakete texturen) {
|
public Dashboard_GUI(Spiel Spiel, Texturenpakete texturen) {
|
||||||
setMinimumSize(new Dimension(1000, 600));
|
setMinimumSize(new Dimension(1000, 600));
|
||||||
texturenpakete = texturen;
|
texturenpakete = texturen;
|
||||||
|
|
||||||
|
System.out.println("DASHBOARD_GUI: Aktives: " + texturenpakete.getAktivesPaket());
|
||||||
|
System.out.println("DASHBOARD_GUI: Anzahl: " + texturenpakete.getAnzahlPakete());
|
||||||
aktuellesSpiel = Spiel;
|
aktuellesSpiel = Spiel;
|
||||||
setLayout(new BorderLayout(0, 0));
|
setLayout(new BorderLayout(0, 0));
|
||||||
panelCont.setLayout(cl);
|
panelCont.setLayout(cl);
|
||||||
@@ -108,17 +111,11 @@ public class Dashboard_GUI extends JPanel{
|
|||||||
gegner_hand.setBackground(Color.GRAY);
|
gegner_hand.setBackground(Color.GRAY);
|
||||||
gegner_hand.setLayout(new BorderLayout(0, 0));
|
gegner_hand.setLayout(new BorderLayout(0, 0));
|
||||||
spielfeld.add(gegner_hand, BorderLayout.NORTH);
|
spielfeld.add(gegner_hand, BorderLayout.NORTH);
|
||||||
|
gegnerkartenpane.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
|
||||||
|
|
||||||
gegnerkartenpane.setBackground(Color.GRAY);
|
|
||||||
gegnerkartenpane.setViewportView(gegnerkarten);
|
|
||||||
gegner_hand.add(gegnerkartenpane, BorderLayout.CENTER);
|
gegner_hand.add(gegnerkartenpane, BorderLayout.CENTER);
|
||||||
gegnerkarten.setAutoscrolls(true);
|
|
||||||
gegnerkarten.setBackground(Color.GRAY);
|
|
||||||
gegnerkarten.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
|
|
||||||
gegnerkartenpane.add(gegnerkarten);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
gegnerkartenpane.setViewportView(gegnerkarten);
|
||||||
|
|
||||||
spielfeldmitte.setPreferredSize(new Dimension(100, 20));
|
spielfeldmitte.setPreferredSize(new Dimension(100, 20));
|
||||||
spielfeldmitte.setLayout(new BorderLayout(0, 0));
|
spielfeldmitte.setLayout(new BorderLayout(0, 0));
|
||||||
|
Reference in New Issue
Block a user