@@ -73,14 +73,14 @@ private void initGUI() {
7373 composite1 .setLayoutData (composite1LData );
7474 composite1 .setLayout (composite1Layout );
7575 {
76- Label spacer = new Label (composite1 , SWT .NONE );
77- spacer .setLayoutData (new GridData (SWT .FILL , SWT .FILL , false , false , 1 , 1 ));
78-
76+ TextLoadController textSelector = new TextLoadController (composite1 , this , SWT .NONE , true , true );
77+ GridData textSelectorLData = new GridData (SWT .CENTER , SWT .CENTER , true , false , 4 , 1 );
78+ textSelectorLData .widthHint = 275 ;
79+ textSelector .setLayoutData (textSelectorLData );
80+
7981 Button button2 = new Button (composite1 , SWT .PUSH | SWT .CENTER );
80- GridData button2LData = new GridData ();
81- button2LData .horizontalAlignment = GridData .FILL ;
82- button2LData .grabExcessHorizontalSpace = true ;
83- button2LData .horizontalSpan = 2 ;
82+ GridData button2LData = new GridData (SWT .CENTER , SWT .CENTER , true , false , 4 , 1 );
83+ button2LData .widthHint = 275 ;
8484 button2 .setLayoutData (button2LData );
8585 button2 .setText (Messages .FriedmanGraphUI_start );
8686 button2 .setEnabled (false );
@@ -91,33 +91,6 @@ public void widgetSelected(SelectionEvent e) {
9191 }
9292 });
9393
94- Label spacer2 = new Label (composite1 , SWT .NONE );
95- spacer2 .setLayoutData (new GridData (SWT .FILL , SWT .FILL , false , false , 1 , 1 ));
96- Label spacer3 = new Label (composite1 , SWT .NONE );
97- spacer3 .setLayoutData (new GridData (SWT .FILL , SWT .FILL , false , false , 1 , 1 ));
98-
99- btnShowTable = new Button (composite1 , SWT .PUSH | SWT .CENTER );
100- GridData btnShowTableLData = new GridData (SWT .CENTER , SWT .CENTER , true , false , 2 , 1 );
101- btnShowTableLData .widthHint = 275 ;
102- btnShowTable .setLayoutData (btnShowTableLData );
103- btnShowTable .setText (Messages .FriedmanGraphUI_showastable );
104- btnShowTable .setEnabled (false );
105- btnShowTable .addSelectionListener (new SelectionAdapter () {
106- @ Override
107- public void widgetSelected (SelectionEvent e ) {
108- showTableDialog (e );
109- }
110- });
111-
112- Label spacer4 = new Label (composite1 , SWT .NONE );
113- spacer4 .setLayoutData (new GridData (SWT .FILL , SWT .FILL , false , false , 1 , 1 ));
114- Label spacer5 = new Label (composite1 , SWT .NONE );
115- spacer5 .setLayoutData (new GridData (SWT .FILL , SWT .FILL , false , false , 1 , 1 ));
116-
117- TextLoadController textSelector = new TextLoadController (composite1 , this , SWT .NONE , true , true );
118- GridData textSelectorLData = new GridData (SWT .CENTER , SWT .CENTER , true , false , 2 , 1 );
119- textSelectorLData .widthHint = 275 ;
120- textSelector .setLayoutData (textSelectorLData );
12194 textSelector .addObserver (new Observer () {
12295
12396 @ Override
@@ -140,7 +113,24 @@ public void update(Observable o, Object arg) {
140113 }
141114 }
142115 });
116+
117+ btnShowTable = new Button (composite1 , SWT .PUSH | SWT .CENTER );
118+ GridData btnShowTableLData = new GridData (SWT .CENTER , SWT .CENTER , true , false , 4 , 1 );
119+ btnShowTableLData .widthHint = 275 ;
120+ btnShowTable .setLayoutData (btnShowTableLData );
121+ btnShowTable .setText (Messages .FriedmanGraphUI_showastable );
122+ btnShowTable .setEnabled (false );
123+ btnShowTable .addSelectionListener (new SelectionAdapter () {
124+ @ Override
125+ public void widgetSelected (SelectionEvent e ) {
126+ showTableDialog (e );
127+ }
128+ });
143129
130+ Label spacer4 = new Label (composite1 , SWT .NONE );
131+ spacer4 .setLayoutData (new GridData (SWT .FILL , SWT .FILL , false , false , 1 , 1 ));
132+ Label spacer5 = new Label (composite1 , SWT .NONE );
133+ spacer5 .setLayoutData (new GridData (SWT .FILL , SWT .FILL , false , false , 1 , 1 ));
144134 }
145135 group1 = new Group (this , SWT .NONE );
146136 GridLayout group1Layout = new GridLayout ();
0 commit comments