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