Skip to content
Snippets Groups Projects
Commit a98cda0c authored by Andrea Enrici's avatar Andrea Enrici
Browse files

added separated tabs for CPU parameters: one for simulation and one for code generation

parent a6754f0a
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,9 @@ public class JDialogCPUNode extends javax.swing.JDialog implements ActionListene
protected JTextField sliceTime, nbOfCores, byteDataSize, pipelineSize, goIdleTime, maxConsecutiveIdleCycles, taskSwitchingTime, branchingPredictionPenalty, cacheMiss, clockRatio, execiTime, execcTime;
protected JComboBox schedulingPolicy, MECTypeCB, encryption;
// Tabbed pane for panel1 and panel2
private JTabbedPane tabbedPane;
// Main Panel
private JButton closeButton;
private JButton cancelButton;
......@@ -115,6 +118,8 @@ public class JDialogCPUNode extends javax.swing.JDialog implements ActionListene
panel2.setLayout(gridbag2);
panel2.setBorder(new javax.swing.border.TitledBorder("CPU attributes"));
panel2.setPreferredSize(new Dimension(400, 300));
tabbedPane = new JTabbedPane();
c2.gridwidth = 1;
c2.gridheight = 1;
......@@ -230,7 +235,7 @@ public class JDialogCPUNode extends javax.swing.JDialog implements ActionListene
c4.gridwidth = 1;
c4.fill = GridBagConstraints.HORIZONTAL;
c4.anchor = GridBagConstraints.CENTER;*/
panel4.add(new JLabel("Encryption"), c4);
panel4.add(new JLabel("Encryption:"), c4);
c4.gridwidth = GridBagConstraints.REMAINDER;
encryption = new JComboBox();
encryption.addItem("None");
......@@ -250,6 +255,10 @@ public class JDialogCPUNode extends javax.swing.JDialog implements ActionListene
}
MECTypeCB.addActionListener(this);
panel4.add( MECTypeCB, c4);
tabbedPane.addTab( "Simulation", panel2 );
tabbedPane.addTab( "Code generation", panel4 );
tabbedPane.setSelectedIndex(0);
// main panel;
c0.gridheight = 10;
......@@ -257,8 +266,9 @@ public class JDialogCPUNode extends javax.swing.JDialog implements ActionListene
c0.weightx = 1.0;
c0.gridwidth = GridBagConstraints.REMAINDER; //end row
c0.fill = GridBagConstraints.BOTH;
c.add(panel2, c0);
c.add(panel4, c0);
/*c.add(panel2, c0);
c.add(panel4, c0);*/
c.add( tabbedPane, c0 );
c0.gridwidth = 1;
c0.gridheight = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment