GUI reworked

This commit is contained in:
ollo 2018-02-03 15:38:38 +01:00
parent 8dc7cf2af7
commit d3d15776dc

View File

@ -98,6 +98,8 @@ public class WS2812Layout extends JFrame {
} }
} }
contentPane.add(ledPanel, BorderLayout.CENTER); contentPane.add(ledPanel, BorderLayout.CENTER);
JPanel bottomPanel = new JPanel();
final JButton btnReboot = new JButton("Reboot"); final JButton btnReboot = new JButton("Reboot");
btnReboot.setActionCommand("Reboot simulation"); btnReboot.setActionCommand("Reboot simulation");
btnReboot.addActionListener(new ActionListener() { btnReboot.addActionListener(new ActionListener() {
@ -109,7 +111,9 @@ public class WS2812Layout extends JFrame {
} }
} }
}); });
contentPane.add(btnReboot, BorderLayout.SOUTH); bottomPanel.add(btnReboot);
contentPane.add(bottomPanel, BorderLayout.SOUTH);
setContentPane(contentPane); setContentPane(contentPane);
pack(); pack();