|
@@ -90,7 +90,8 @@ public class PortEditorPanel extends JPanel
|
|
|
for(int i = 0; i<toEdit.getPorts().size();i++)
|
|
|
ports[i]=toEdit.getPorts().get(i);
|
|
|
|
|
|
- list = new JList<Port>(ports);
|
|
|
+ list = new JList<Port>(ports);//Safe conversion
|
|
|
+ //list = new JList(ports);//To enable Eclipse.WindowBuilder
|
|
|
list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
|
|
|
list.setSelectedIndex(0);
|
|
|
list.addListSelectionListener(this);
|
|
@@ -165,6 +166,10 @@ public class PortEditorPanel extends JPanel
|
|
|
tfTriggerInterval.addActionListener(this);
|
|
|
tfTriggerInterval.addMouseListener(this);
|
|
|
|
|
|
+ JLabel lblTriggerIntervalUnit = new JLabel("ms");
|
|
|
+ lblTriggerIntervalUnit.setBounds(270, 100, 50, 20);
|
|
|
+ editPanel.add(lblTriggerIntervalUnit);
|
|
|
+
|
|
|
JLabel lblResponseTime = new JLabel("Response Time:");
|
|
|
lblResponseTime.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
lblResponseTime.setBounds(10, 130, 110, 20);
|
|
@@ -178,6 +183,10 @@ public class PortEditorPanel extends JPanel
|
|
|
tfResponseTime.addActionListener(this);
|
|
|
tfResponseTime.addMouseListener(this);
|
|
|
|
|
|
+ JLabel lblResponseTimeUnit = new JLabel("ms");
|
|
|
+ lblResponseTimeUnit.setBounds(270, 130, 50, 20);
|
|
|
+ editPanel.add(lblResponseTimeUnit);
|
|
|
+
|
|
|
JLabel lblLasttrigger = new JLabel("LastTrigger:");
|
|
|
lblLasttrigger.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
lblLasttrigger.setBounds(10, 160, 110, 20);
|
|
@@ -191,6 +200,10 @@ public class PortEditorPanel extends JPanel
|
|
|
tfLastTrigger.addActionListener(this);
|
|
|
tfLastTrigger.addMouseListener(this);
|
|
|
|
|
|
+ JLabel lblLastTriggerUnit = new JLabel("ms");
|
|
|
+ lblLastTriggerUnit.setBounds(270, 160, 50, 20);
|
|
|
+ editPanel.add(lblLastTriggerUnit);
|
|
|
+
|
|
|
JLabel lblJitter = new JLabel("Jitter:");
|
|
|
lblJitter.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
lblJitter.setBounds(10, 190, 110, 20);
|
|
@@ -200,6 +213,10 @@ public class PortEditorPanel extends JPanel
|
|
|
tfJitter.setBounds(130, 190, 130, 20);
|
|
|
editPanel.add(tfJitter);
|
|
|
tfJitter.setColumns(10);
|
|
|
+
|
|
|
+ JLabel lblJitterUnit = new JLabel("ms");
|
|
|
+ lblJitterUnit.setBounds(270, 190, 50, 20);
|
|
|
+ editPanel.add(lblJitterUnit);
|
|
|
tfJitter.addFocusListener(this);
|
|
|
tfJitter.addActionListener(this);
|
|
|
tfJitter.addMouseListener(this);
|