changeset 47:dd93c9ba6624 database-connection-manager

Fix Java dialog
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Tue, 06 Dec 2011 19:07:27 +0100
parents ca0b8d4dcdb6
children 16aa66670d74
files src/MPipeline2/src/mpipeline/ltpdapreferences/RepositoryDialog.form src/MPipeline2/src/mpipeline/ltpdapreferences/RepositoryDialog.java
diffstat 2 files changed, 20 insertions(+), 30 deletions(-) [+]
line wrap: on
line diff
--- a/src/MPipeline2/src/mpipeline/ltpdapreferences/RepositoryDialog.form	Tue Dec 06 19:07:27 2011 +0100
+++ b/src/MPipeline2/src/mpipeline/ltpdapreferences/RepositoryDialog.form	Tue Dec 06 19:07:27 2011 +0100
@@ -38,16 +38,16 @@
                       <EmptySpace min="-2" pref="21" max="-2" attributes="0"/>
                       <Component id="databaseCombo" pref="240" max="32767" attributes="0"/>
                   </Group>
+                  <Group type="102" alignment="0" attributes="0">
+                      <Component id="jLabel11" min="-2" max="-2" attributes="0"/>
+                      <EmptySpace type="separate" max="-2" attributes="0"/>
+                      <Component id="usernameCombo" pref="240" max="32767" attributes="0"/>
+                  </Group>
                   <Group type="102" alignment="1" attributes="0">
                       <Component id="cancelButton" min="-2" max="-2" attributes="0"/>
                       <EmptySpace max="-2" attributes="0"/>
                       <Component id="okButton" min="-2" max="-2" attributes="0"/>
                   </Group>
-                  <Group type="102" alignment="0" attributes="0">
-                      <Component id="jLabel11" min="-2" max="-2" attributes="0"/>
-                      <EmptySpace type="separate" max="-2" attributes="0"/>
-                      <Component id="usernameCombo" pref="240" max="32767" attributes="0"/>
-                  </Group>
               </Group>
               <EmptySpace max="-2" attributes="0"/>
           </Group>
@@ -71,18 +71,12 @@
                   <Component id="jLabel11" alignment="3" min="-2" max="-2" attributes="0"/>
                   <Component id="usernameCombo" alignment="3" min="-2" max="-2" attributes="0"/>
               </Group>
-              <Group type="103" groupAlignment="0" attributes="0">
-                  <Group type="102" attributes="0">
-                      <EmptySpace pref="12" max="32767" attributes="0"/>
-                      <Component id="okButton" min="-2" max="-2" attributes="0"/>
-                      <EmptySpace max="-2" attributes="0"/>
-                  </Group>
-                  <Group type="102" alignment="0" attributes="0">
-                      <EmptySpace type="unrelated" max="-2" attributes="0"/>
-                      <Component id="cancelButton" min="-2" max="-2" attributes="0"/>
-                      <EmptySpace max="-2" attributes="0"/>
-                  </Group>
+              <EmptySpace min="-2" pref="12" max="-2" attributes="0"/>
+              <Group type="103" groupAlignment="3" attributes="0">
+                  <Component id="cancelButton" alignment="3" min="-2" max="-2" attributes="0"/>
+                  <Component id="okButton" alignment="3" min="-2" max="-2" attributes="0"/>
               </Group>
+              <EmptySpace max="-2" attributes="0"/>
           </Group>
       </Group>
     </DimensionLayout>
--- a/src/MPipeline2/src/mpipeline/ltpdapreferences/RepositoryDialog.java	Tue Dec 06 19:07:27 2011 +0100
+++ b/src/MPipeline2/src/mpipeline/ltpdapreferences/RepositoryDialog.java	Tue Dec 06 19:07:27 2011 +0100
@@ -100,14 +100,14 @@
             .add(jLabel10)
             .add(21, 21, 21)
             .add(databaseCombo, 0, 240, Short.MAX_VALUE))
+          .add(layout.createSequentialGroup()
+            .add(jLabel11)
+            .add(18, 18, 18)
+            .add(usernameCombo, 0, 240, Short.MAX_VALUE))
           .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
             .add(cancelButton)
             .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
-            .add(okButton))
-          .add(layout.createSequentialGroup()
-            .add(jLabel11)
-            .add(18, 18, 18)
-            .add(usernameCombo, 0, 240, Short.MAX_VALUE)))
+            .add(okButton)))
         .addContainerGap())
     );
     layout.setVerticalGroup(
@@ -125,15 +125,11 @@
         .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
           .add(jLabel11)
           .add(usernameCombo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
-        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
-          .add(layout.createSequentialGroup()
-            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 12, Short.MAX_VALUE)
-            .add(okButton)
-            .addContainerGap())
-          .add(layout.createSequentialGroup()
-            .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
-            .add(cancelButton)
-            .addContainerGap())))
+        .add(12, 12, 12)
+        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
+          .add(cancelButton)
+          .add(okButton))
+        .addContainerGap())
     );
 
     pack();