Fixed letter alignment below the board
This commit is contained in:
parent
884fcd2722
commit
0461444455
@ -82,8 +82,11 @@ public class MainWindow {
|
||||
mframe.getContentPane().add(toolPanel, BorderLayout.NORTH);
|
||||
|
||||
JPanel letterPanel = new JPanel(new GridLayout(1, 8));
|
||||
for (int i = 0; i < 8; i++)
|
||||
letterPanel.add(new JLabel(String.valueOf((char) (65 + i))));
|
||||
for (int i = 0; i < 8; i++) {
|
||||
JLabel letterLabel = new JLabel(String.valueOf((char) (65 + i)));
|
||||
letterLabel.setHorizontalAlignment(JLabel.CENTER);
|
||||
letterPanel.add(letterLabel);
|
||||
}
|
||||
mframe.add(letterPanel, BorderLayout.SOUTH);
|
||||
|
||||
JPanel numberPanel = new JPanel(new GridLayout(8, 1));
|
||||
|
Reference in New Issue
Block a user