fix
parent
043e8b5090
commit
101b5e7d19
|
|
@ -222,13 +222,12 @@ public class SpielFrame extends JFrame {
|
||||||
// logger.info("Helles Feld erstellt." + i);
|
// logger.info("Helles Feld erstellt." + i);
|
||||||
b.setBackground(new Color(90, 90, 90));
|
b.setBackground(new Color(90, 90, 90));
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// logger.info("Dunkles Feld erstellt." + i);
|
// logger.info("Dunkles Feld erstellt." + i);
|
||||||
b.setBackground(new Color(65, 65, 65));
|
b.setBackground(new Color(65, 65, 65));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(i % 8 == 0) {
|
if (i % 8 == 0) {
|
||||||
b.setHorizontalAlignment(SwingConstants.CENTER);
|
b.setHorizontalAlignment(SwingConstants.CENTER);
|
||||||
b.setVerticalAlignment(SwingConstants.CENTER);
|
b.setVerticalAlignment(SwingConstants.CENTER);
|
||||||
|
|
||||||
|
|
@ -237,15 +236,13 @@ public class SpielFrame extends JFrame {
|
||||||
|
|
||||||
b.setIconTextGap(5);
|
b.setIconTextGap(5);
|
||||||
|
|
||||||
b.setText(String.valueOf(counter)+b.getText());
|
b.setText(String.valueOf(counter) + b.getText());
|
||||||
counter--;
|
counter--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
char buchstabe = 'a';
|
char buchstabe = 'a';
|
||||||
for(int j=0;j<8;j++) {
|
for (int j = 0; j < 8; j++) {
|
||||||
JButton button = buttons.get(mirrowedGrid(j));
|
JButton button = buttons.get(mirrowedGrid(j));
|
||||||
|
|
||||||
button.setHorizontalAlignment(SwingConstants.CENTER);
|
button.setHorizontalAlignment(SwingConstants.CENTER);
|
||||||
|
|
@ -261,6 +258,7 @@ public class SpielFrame extends JFrame {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the to default buttons
|
* Sets the to default buttons
|
||||||
*/
|
*/
|
||||||
|
|
@ -322,11 +320,9 @@ public class SpielFrame extends JFrame {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case finished:
|
case finished:
|
||||||
clearButtons();
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case gameEnd:
|
case gameEnd:
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue