net: Change the label name of TapDeviceDialog
authorMunkyu Im <munkyu.im@samsung.com>
Tue, 14 Apr 2015 06:42:53 +0000 (15:42 +0900)
committerminkee.lee <minkee.lee@samsung.com>
Sat, 2 May 2015 07:58:57 +0000 (16:58 +0900)
"Host Network" is clearer name than "Interface".

Change-Id: I708d50943f7c4c28d8b24be55b66aacc3d5fddba
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
common-project/src/org/tizen/emulator/manager/ui/dialog/TapDeviceDialogForWin.java

index 29d1a7b..eb006ea 100644 (file)
@@ -65,8 +65,9 @@ import org.tizen.emulator.manager.vms.helper.ProcessResult;
 
 public class TapDeviceDialogForWin {
        private static Shell dialog = null;
-       private static int width = 385;
+       private static int width = 395;
        private static int height = 155;
+       private static int labelWidth = 95;
        private static int comboWidth = 250;
        private static int COMP_WIDTH = width - 30;
 
@@ -150,7 +151,7 @@ public class TapDeviceDialogForWin {
                FormData data = new FormData();
                data.left = new FormAttachment(0, 15);
                data.top = new FormAttachment(0, 4);
-               data.width = 85;
+               data.width = labelWidth;
                data.height = 20;
                nameLabel.setLayoutData(data);
 
@@ -159,7 +160,7 @@ public class TapDeviceDialogForWin {
                valueLabel.setEnableImage(INPUTBOX_ON_IMAGE);
                valueLabel.setLayout(new FormLayout());
                data = new FormData();
-               data.left = new FormAttachment(0, 100);
+               data.left = new FormAttachment(nameLabel, 0);
                data.top = new FormAttachment(0, 4);
                data.width = comboWidth;
                data.height = 19;
@@ -184,11 +185,11 @@ public class TapDeviceDialogForWin {
                // interface (combo select)
                Label ifLabel = new Label(upperComp, SWT.NONE);
                ifLabel.setFont(FontResources.DETAIL_TITLE_FONT.getFont());
-               ifLabel.setText("Interface");
+               ifLabel.setText("Host Network");
                data = new FormData();
                data.left = new FormAttachment(0, 15);
                data.top = new FormAttachment(0, 31);
-               data.width = 85;
+               data.width = labelWidth;
                data.height = 20;
                ifLabel.setLayoutData(data);
 
@@ -204,7 +205,7 @@ public class TapDeviceDialogForWin {
                combo.setLayout(new FormLayout());
 
                data = new FormData();
-               data.left = new FormAttachment(0, 100);
+               data.left = new FormAttachment(ifLabel, 0);
                data.right = new FormAttachment(100, -5);
                data.top = new FormAttachment(0, 31);
                data.width = INPUTBOX_ON_IMAGE.getImageData().width;