feat: start of UI for REU support

This commit is contained in:
lantzelot-swe 2021-02-04 22:52:36 +01:00
parent bf85d07e63
commit 901956a63d
1 changed files with 25 additions and 1 deletions

View File

@ -66,6 +66,8 @@ public class SystemPanel extends JPanel
private SystemModel model;
private JCheckBox readOnlyCheckBox;
private JLabel displayShiftValueLabel;
private JPanel audioReuPanel;
private JPanel reuPanel;
public SystemPanel(SystemModel model)
{
@ -326,12 +328,34 @@ public class SystemPanel extends JPanel
{
cardPanel = new JPanel();
cardPanel.setLayout(cardLayout);
cardPanel.add(getAudioPanel(), "audio");
cardPanel.add(getAudioReuPanel(), "audio");
cardPanel.add(getRamPanel(), "ram");
}
return cardPanel;
}
private JPanel getAudioReuPanel()
{
if (audioReuPanel == null)
{
audioReuPanel = new JPanel();
audioReuPanel.setLayout(new BorderLayout());
audioReuPanel.add(getAudioPanel(), BorderLayout.NORTH);
audioReuPanel.add(getReuPanel(), BorderLayout.CENTER);
}
return audioReuPanel;
}
private JPanel getReuPanel()
{
if (reuPanel == null)
{
reuPanel = new JPanel();
reuPanel.setBorder(new TitledBorder(null, "REU", TitledBorder.LEADING, TitledBorder.TOP, null, null));
}
return reuPanel;
}
private JPanel getAudioPanel()
{
if (audioPanel == null)