fix merge conflict
parent
100cf4712c
commit
73768473e1
|
|
@ -228,7 +228,7 @@ public class SpielFrame extends JFrame {
|
|||
/*
|
||||
* Switches the button actions depending on the boardmode
|
||||
*/
|
||||
private void setButtonsActions() {
|
||||
public void setButtonsActions() {
|
||||
|
||||
List<Square> selectables;
|
||||
|
||||
|
|
@ -632,44 +632,4 @@ public class SpielFrame extends JFrame {
|
|||
this.aufgeben2 = aufgeben2;
|
||||
}
|
||||
|
||||
public void setMode(BoardMode mode) {
|
||||
this.mode = mode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Inverts the Enabled property of the controlpanelButtons
|
||||
*/
|
||||
public void enableControlPanelButtons() {
|
||||
for (Component c : this.controlPanel.getComponents()) {
|
||||
if (c instanceof JButton) {
|
||||
c.setEnabled(!c.isEnabled());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the buttons to the boardpanel
|
||||
*/
|
||||
public void applyBoardButtons() {
|
||||
for (JButton b : buttons) {
|
||||
panelLinks.add(b);
|
||||
}
|
||||
}
|
||||
|
||||
public JButton getAufgeben() {
|
||||
return aufgeben;
|
||||
}
|
||||
|
||||
public void setAufgeben(JButton aufgeben) {
|
||||
this.aufgeben = aufgeben;
|
||||
}
|
||||
|
||||
public JButton getAufgeben2() {
|
||||
return aufgeben2;
|
||||
}
|
||||
|
||||
public void setAufgeben2(JButton aufgeben2) {
|
||||
this.aufgeben2 = aufgeben2;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue