GUI reworked
This commit is contained in:
parent
8dc7cf2af7
commit
d3d15776dc
@ -98,6 +98,8 @@ public class WS2812Layout extends JFrame {
|
||||
}
|
||||
}
|
||||
contentPane.add(ledPanel, BorderLayout.CENTER);
|
||||
|
||||
JPanel bottomPanel = new JPanel();
|
||||
final JButton btnReboot = new JButton("Reboot");
|
||||
btnReboot.setActionCommand("Reboot simulation");
|
||||
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);
|
||||
pack();
|
||||
|
Loading…
Reference in New Issue
Block a user