|
@@ -103,6 +103,7 @@ public class SmartDeviceCreationPopUp extends JDialog {
|
|
|
panelGeneral.setLayout(gbl_panelGeneral);
|
|
|
|
|
|
JLabel lblName = new JLabel("Name:");
|
|
|
+ lblName.setToolTipText("Change the name of the SmartDevice");
|
|
|
GridBagConstraints gbc_lblName = new GridBagConstraints();
|
|
|
gbc_lblName.anchor = GridBagConstraints.WEST;
|
|
|
gbc_lblName.insets = new Insets(0, 0, 5, 5);
|
|
@@ -111,6 +112,7 @@ public class SmartDeviceCreationPopUp extends JDialog {
|
|
|
panelGeneral.add(lblName, gbc_lblName);
|
|
|
|
|
|
tfName = new JTextField();
|
|
|
+ tfName.setToolTipText("Enter the SmartDevice name");
|
|
|
GridBagConstraints gbc_tfName = new GridBagConstraints();
|
|
|
gbc_tfName.anchor = GridBagConstraints.NORTHWEST;
|
|
|
gbc_tfName.insets = new Insets(0, 0, 5, 0);
|
|
@@ -121,7 +123,8 @@ public class SmartDeviceCreationPopUp extends JDialog {
|
|
|
tfName.setText(newDevice.getName());
|
|
|
|
|
|
JLabel lblXposition = new JLabel(
|
|
|
- "x-position: [" + visualisationRadius + "," + (maxX - visualisationRadius) + "]");
|
|
|
+ "x-position in [" + visualisationRadius + "," + (maxX - visualisationRadius) + "]:");
|
|
|
+ lblXposition.setToolTipText("Set the x position, which should be an integer in the given interval.");
|
|
|
GridBagConstraints gbc_lblXposition = new GridBagConstraints();
|
|
|
gbc_lblXposition.anchor = GridBagConstraints.WEST;
|
|
|
gbc_lblXposition.insets = new Insets(0, 0, 5, 5);
|
|
@@ -130,6 +133,7 @@ public class SmartDeviceCreationPopUp extends JDialog {
|
|
|
panelGeneral.add(lblXposition, gbc_lblXposition);
|
|
|
|
|
|
tfXposition = new JTextField();
|
|
|
+ lblXposition.setToolTipText("Enter the x position, which should be an integer in the given interval.");
|
|
|
GridBagConstraints gbc_tfXposition = new GridBagConstraints();
|
|
|
gbc_tfXposition.anchor = GridBagConstraints.NORTHWEST;
|
|
|
gbc_tfXposition.insets = new Insets(0, 0, 5, 0);
|
|
@@ -141,7 +145,8 @@ public class SmartDeviceCreationPopUp extends JDialog {
|
|
|
tfXposition.setInputVerifier(new IntegerInputValidator(visualisationRadius, maxX - visualisationRadius));
|
|
|
|
|
|
JLabel lblYposition = new JLabel(
|
|
|
- "y-position: [" + visualisationRadius + "," + (maxY - visualisationRadius) + "]");
|
|
|
+ "y-position in [" + visualisationRadius + "," + (maxY - visualisationRadius) + "]:");
|
|
|
+ lblXposition.setToolTipText("Set the y position, which should be an integer in the given interval.");
|
|
|
GridBagConstraints gbc_lblYposition = new GridBagConstraints();
|
|
|
gbc_lblYposition.anchor = GridBagConstraints.WEST;
|
|
|
gbc_lblYposition.insets = new Insets(0, 0, 5, 5);
|
|
@@ -150,6 +155,7 @@ public class SmartDeviceCreationPopUp extends JDialog {
|
|
|
panelGeneral.add(lblYposition, gbc_lblYposition);
|
|
|
|
|
|
tfYposition = new JTextField();
|
|
|
+ tfYposition.setToolTipText("Set the y position, which should be an integer in the given interval.");
|
|
|
GridBagConstraints gbc_tfYposition = new GridBagConstraints();
|
|
|
gbc_tfYposition.anchor = GridBagConstraints.WEST;
|
|
|
gbc_tfYposition.insets = new Insets(0, 0, 5, 0);
|