Updates GUI für Texturen und Spiel
This commit is contained in:
@@ -182,7 +182,7 @@ public class Dashboard_GUI extends JPanel{
|
|||||||
btnpik.addMouseListener(new MouseAdapter() {
|
btnpik.addMouseListener(new MouseAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void mouseClicked(MouseEvent e) {
|
public void mouseClicked(MouseEvent e) {
|
||||||
aktuellesSpiel.getKartensatz().SetWunschfarbe(Farbe.PIK);
|
aktuellesSpiel.wuenscher(Farbe.PIK);
|
||||||
showwunsch(false);
|
showwunsch(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -192,7 +192,7 @@ public class Dashboard_GUI extends JPanel{
|
|||||||
btnkaro.addMouseListener(new MouseAdapter() {
|
btnkaro.addMouseListener(new MouseAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void mouseClicked(MouseEvent e) {
|
public void mouseClicked(MouseEvent e) {
|
||||||
aktuellesSpiel.getKartensatz().SetWunschfarbe(Farbe.KARO);
|
aktuellesSpiel.wuenscher(Farbe.KARO);
|
||||||
showwunsch(false);
|
showwunsch(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -202,7 +202,7 @@ public class Dashboard_GUI extends JPanel{
|
|||||||
btnkreuz.addMouseListener(new MouseAdapter() {
|
btnkreuz.addMouseListener(new MouseAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void mouseClicked(MouseEvent e) {
|
public void mouseClicked(MouseEvent e) {
|
||||||
aktuellesSpiel.getKartensatz().SetWunschfarbe(Farbe.KREUZ);
|
aktuellesSpiel.wuenscher(Farbe.KREUZ);
|
||||||
showwunsch(false);
|
showwunsch(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -210,7 +210,7 @@ public class Dashboard_GUI extends JPanel{
|
|||||||
btnherz.addMouseListener(new MouseAdapter() {
|
btnherz.addMouseListener(new MouseAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void mouseClicked(MouseEvent e) {
|
public void mouseClicked(MouseEvent e) {
|
||||||
aktuellesSpiel.getKartensatz().SetWunschfarbe(Farbe.HERZ);
|
aktuellesSpiel.wuenscher(Farbe.HERZ);
|
||||||
showwunsch(false);
|
showwunsch(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -376,8 +376,8 @@ public class Dashboard_GUI extends JPanel{
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void showaussetzen() {
|
public void showaussetzen(boolean status) {
|
||||||
aussetzen.setVisible(true);
|
aussetzen.setVisible(status);
|
||||||
mitte_unten.updateUI();
|
mitte_unten.updateUI();
|
||||||
//System.out.println("DASHBOARD_GUI showaussetzen bis zum Ende aufgerufen!");
|
//System.out.println("DASHBOARD_GUI showaussetzen bis zum Ende aufgerufen!");
|
||||||
}
|
}
|
||||||
|
@@ -11,6 +11,8 @@ import javax.swing.SwingConstants;
|
|||||||
import javax.swing.border.EmptyBorder;
|
import javax.swing.border.EmptyBorder;
|
||||||
|
|
||||||
import de.jaujau.daten.Texturenpakete;
|
import de.jaujau.daten.Texturenpakete;
|
||||||
|
import javax.swing.JList;
|
||||||
|
import javax.swing.JComboBox;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Klasse texturenauswaehlen_GUI
|
* Klasse texturenauswaehlen_GUI
|
||||||
@@ -35,38 +37,40 @@ public class texturenauswaehlen_GUI extends JFrame{
|
|||||||
setBounds(100, 100, 588, 382);
|
setBounds(100, 100, 588, 382);
|
||||||
contentPane = new JPanel();
|
contentPane = new JPanel();
|
||||||
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
|
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
|
||||||
contentPane.setLayout(new BorderLayout(0, 0));
|
|
||||||
setContentPane(contentPane);
|
setContentPane(contentPane);
|
||||||
|
contentPane.setLayout(null);
|
||||||
|
|
||||||
//Text "Texturenauswahl"
|
//Text "Texturenauswahl"
|
||||||
JLabel lblNewLabel = new JLabel("Texturenauswahl");
|
JLabel lblNewLabel = new JLabel("Texturenauswahl");
|
||||||
|
lblNewLabel.setBounds(5, 5, 562, 25);
|
||||||
lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 20));
|
lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 20));
|
||||||
lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
|
lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
|
||||||
contentPane.add(lblNewLabel, BorderLayout.NORTH);
|
contentPane.add(lblNewLabel);
|
||||||
|
|
||||||
//Teste Hinzufügen
|
//Teste Hinzufügen
|
||||||
hinzufuegen = new JButton("Hinzufügen");
|
hinzufuegen = new JButton("Hinzuf\u00FCgen");
|
||||||
hinzufuegen.setBounds(20, 20, 225, 20);
|
hinzufuegen.setBounds(144, 130, 137, 23);
|
||||||
hinzufuegen.addActionListener(e-> paketHinzufuegeb());
|
hinzufuegen.addActionListener(e-> paketHinzufuegeb());
|
||||||
contentPane.add(hinzufuegen);
|
contentPane.add(hinzufuegen);
|
||||||
|
|
||||||
//Teste Entfernen
|
//Teste Entfernen
|
||||||
entfernen = new JButton("Entfernen");
|
entfernen = new JButton("Entfernen");
|
||||||
entfernen.setBounds(30, 30, 225, 20);
|
entfernen.setBounds(291, 129, 140, 25);
|
||||||
entfernen.addActionListener(e-> paketHinzufuegeb());
|
entfernen.addActionListener(e-> paketHinzufuegeb());
|
||||||
contentPane.add(entfernen);
|
contentPane.add(entfernen);
|
||||||
|
|
||||||
//Teste OK
|
//Teste OK
|
||||||
ok = new JButton("OK");
|
ok = new JButton("Speicher");
|
||||||
ok.setBounds(40, 40, 225, 20);
|
ok.setBounds(358, 239, 73, 23);
|
||||||
ok.addActionListener(e-> paketHinzufuegeb());
|
ok.addActionListener(e-> paketHinzufuegeb());
|
||||||
contentPane.add(ok);
|
contentPane.add(ok);
|
||||||
|
|
||||||
|
JComboBox comboBox = new JComboBox();
|
||||||
|
comboBox.setBounds(144, 73, 287, 25);
|
||||||
|
contentPane.add(comboBox);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void paketHinzufuegeb() {
|
private void paketHinzufuegeb() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user