|
@@ -95,13 +95,13 @@ public class PortEditorPanel extends JPanel
|
|
|
|
|
|
JLabel lblPortnumber = new JLabel("PortNumber:");
|
|
|
lblPortnumber.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
- lblPortnumber.setBounds(49, 8, 73, 16);
|
|
|
+ lblPortnumber.setBounds(10, 10, 110, 20);
|
|
|
editPanel.add(lblPortnumber);
|
|
|
|
|
|
JScrollPane pictureScrollPane = new JScrollPane(editPanel);
|
|
|
|
|
|
tfPortNumber = new JTextField();
|
|
|
- tfPortNumber.setBounds(134, 5, 132, 22);
|
|
|
+ tfPortNumber.setBounds(130, 10, 130, 20);
|
|
|
editPanel.add(tfPortNumber);
|
|
|
tfPortNumber.setColumns(10);
|
|
|
tfPortNumber.addFocusListener(this);
|
|
@@ -110,39 +110,42 @@ public class PortEditorPanel extends JPanel
|
|
|
|
|
|
JLabel lblProtocol = new JLabel("Protocol:");
|
|
|
lblProtocol.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
- lblProtocol.setBounds(66, 37, 56, 16);
|
|
|
+ lblProtocol.setBounds(10, 40, 110, 20);
|
|
|
editPanel.add(lblProtocol);
|
|
|
|
|
|
- JLabel lblStatus = new JLabel("Status:");
|
|
|
- lblStatus.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
- lblStatus.setBounds(66, 66, 56, 16);
|
|
|
- editPanel.add(lblStatus);
|
|
|
-
|
|
|
+ lblProtocolName = new JLabel("Protocol");
|
|
|
+ lblProtocolName.setBounds(130, 40, 60, 20);;
|
|
|
+ editPanel.add(lblProtocolName);
|
|
|
+
|
|
|
JButton btnEditConnection = new JButton("Edit");
|
|
|
- btnEditConnection.setBounds(193, 33, 73, 25);
|
|
|
+ btnEditConnection.setBounds(200, 40, 60, 20);
|
|
|
editPanel.add(btnEditConnection);
|
|
|
|
|
|
- lblProtocolName = new JLabel("Protocol");
|
|
|
- lblProtocolName.setBounds(134, 37, 56, 16);
|
|
|
- editPanel.add(lblProtocolName);
|
|
|
+ JLabel lblStatus = new JLabel("Status:");
|
|
|
+ lblStatus.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
+ //lblStatus.setBounds(66, 66, 56, 16);
|
|
|
+ lblStatus.setBounds(10, 70, 110, 20);;
|
|
|
+ editPanel.add(lblStatus);
|
|
|
|
|
|
cmbStatus = new JComboBox<String>();
|
|
|
cmbStatus.addItem(Port.statusToString(Port.CLOSED));
|
|
|
cmbStatus.addItem(Port.statusToString(Port.OPEN));
|
|
|
cmbStatus.addItem(Port.statusToString(Port.SENDING));
|
|
|
cmbStatus.addItem(Port.statusToString((short) 4));
|
|
|
- cmbStatus.setBounds(134, 63, 132, 22);
|
|
|
+ cmbStatus.setBounds(130, 70, 130, 20);
|
|
|
editPanel.add(cmbStatus);
|
|
|
cmbStatus.addFocusListener(this);
|
|
|
cmbStatus.addActionListener(this);
|
|
|
cmbStatus.addMouseListener(this);
|
|
|
+
|
|
|
+
|
|
|
JLabel lblTriggerInterval = new JLabel("Trigger Interval:");
|
|
|
lblTriggerInterval.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
- lblTriggerInterval.setBounds(0, 95, 122, 16);
|
|
|
+ lblTriggerInterval.setBounds(10, 100, 110, 20);
|
|
|
editPanel.add(lblTriggerInterval);
|
|
|
|
|
|
tfTriggerInterval = new JTextField();
|
|
|
- tfTriggerInterval.setBounds(134, 92, 132, 22);
|
|
|
+ tfTriggerInterval.setBounds(130, 100, 130, 20);
|
|
|
editPanel.add(tfTriggerInterval);
|
|
|
tfTriggerInterval.setColumns(10);
|
|
|
tfTriggerInterval.addFocusListener(this);
|
|
@@ -151,11 +154,11 @@ public class PortEditorPanel extends JPanel
|
|
|
|
|
|
JLabel lblResponseTime = new JLabel("Response Time:");
|
|
|
lblResponseTime.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
- lblResponseTime.setBounds(10, 124, 112, 16);
|
|
|
+ lblResponseTime.setBounds(10, 130, 110, 20);
|
|
|
editPanel.add(lblResponseTime);
|
|
|
|
|
|
tfResponseTime = new JTextField();
|
|
|
- tfResponseTime.setBounds(134, 121, 132, 22);
|
|
|
+ tfResponseTime.setBounds(130, 130, 130, 20);
|
|
|
editPanel.add(tfResponseTime);
|
|
|
tfResponseTime.setColumns(10);
|
|
|
tfResponseTime.addFocusListener(this);
|
|
@@ -164,11 +167,11 @@ public class PortEditorPanel extends JPanel
|
|
|
|
|
|
JLabel lblLasttrigger = new JLabel("LastTrigger:");
|
|
|
lblLasttrigger.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
- lblLasttrigger.setBounds(20, 153, 102, 16);
|
|
|
+ lblLasttrigger.setBounds(10, 160, 110, 20);
|
|
|
editPanel.add(lblLasttrigger);
|
|
|
|
|
|
tfLastTrigger = new JTextField();
|
|
|
- tfLastTrigger.setBounds(134, 150, 132, 22);
|
|
|
+ tfLastTrigger.setBounds(130, 160, 130, 20);
|
|
|
editPanel.add(tfLastTrigger);
|
|
|
tfLastTrigger.setColumns(10);
|
|
|
tfLastTrigger.addFocusListener(this);
|
|
@@ -177,11 +180,11 @@ public class PortEditorPanel extends JPanel
|
|
|
|
|
|
JLabel lblJitter = new JLabel("Jitter:");
|
|
|
lblJitter.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
- lblJitter.setBounds(20, 180, 102, 16);
|
|
|
+ lblJitter.setBounds(10, 190, 110, 20);
|
|
|
editPanel.add(lblJitter);
|
|
|
|
|
|
tfJitter = new JTextField();
|
|
|
- tfJitter.setBounds(134, 180, 132, 22);
|
|
|
+ tfJitter.setBounds(130, 190, 130, 20);
|
|
|
editPanel.add(tfJitter);
|
|
|
tfJitter.setColumns(10);
|
|
|
tfJitter.addFocusListener(this);
|
|
@@ -190,7 +193,7 @@ public class PortEditorPanel extends JPanel
|
|
|
|
|
|
splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
|
|
|
listScrollPane, pictureScrollPane);
|
|
|
- splitPane.setDividerLocation(60);
|
|
|
+ splitPane.setDividerLocation(90);
|
|
|
|
|
|
/**
|
|
|
* minimum sizes of the panels
|
|
@@ -201,7 +204,7 @@ public class PortEditorPanel extends JPanel
|
|
|
pictureScrollPane.setMinimumSize(minimumSize);
|
|
|
|
|
|
// Set the preferred size
|
|
|
- splitPane.setPreferredSize(new Dimension(400, 200));
|
|
|
+ splitPane.setPreferredSize(new Dimension(380, 220));
|
|
|
if(!toEdit.getPorts().isEmpty())
|
|
|
updateLabel(toEdit.getPorts().get(list.getSelectedIndex()));
|
|
|
}
|