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