cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmen...@apache.org
Subject svn commit: r679853 - /cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/pref/GeneralPreferencesView.java
Date Fri, 25 Jul 2008 16:29:01 GMT
Author: kmenard
Date: Fri Jul 25 09:29:00 2008
New Revision: 679853

URL: http://svn.apache.org/viewvc?rev=679853&view=rev
Log:
Work on CAY-1083: General Preferences Panel - items misaligned

Alignment is now fixed.

Modified:
    cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/pref/GeneralPreferencesView.java

Modified: cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/pref/GeneralPreferencesView.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/pref/GeneralPreferencesView.java?rev=679853&r1=679852&r2=679853&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/pref/GeneralPreferencesView.java
(original)
+++ cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/pref/GeneralPreferencesView.java
Fri Jul 25 09:29:00 2008
@@ -19,14 +19,13 @@
 
 package org.apache.cayenne.modeler.dialog.pref;
 
-import java.awt.BorderLayout;
-
-import javax.swing.*;
-
 import com.jgoodies.forms.builder.PanelBuilder;
 import com.jgoodies.forms.layout.CellConstraints;
 import com.jgoodies.forms.layout.FormLayout;
 
+import javax.swing.*;
+import java.awt.*;
+
 /**
  * @author Andrus Adamchik
  */
@@ -49,20 +48,20 @@
 
         FormLayout layout = new FormLayout(
                 "right:pref, 3dlu, 30dlu, 3dlu, fill:70dlu",
-                "p, 3dlu, p, 12dlu, p, 30dlu, p, 12dlu, p, 3dlu, p, 3dlu, fill:40dlu:grow");
+                "p, 3dlu, p, 12dlu, p, 30dlu, p, 12dlu, p, 3dlu, p, fill:40dlu:grow");
 
         CellConstraints cc = new CellConstraints();
         PanelBuilder builder = new PanelBuilder(layout);
         builder.setDefaultDialogBorder();
-        builder.addSeparator("General Preferences", cc.xywh(1, 1, 5, 1));
+        builder.addSeparator("General Preferences", cc.xyw(1, 1, 5));
         builder.add(saveIntervalLabel, cc.xy(1, 3));
         builder.add(saveInterval, cc.xy(3, 3));
         builder.add(encodingSelectorLabel, cc.xy(1, 5));
         builder.add(encodingSelector, cc.xywh(3, 5, 3, 3));
-        builder.add(autoLoadProjectBox, cc.xy(1, 7));
+        builder.add(autoLoadProjectBox, cc.xy(1, 7, CellConstraints.LEFT, CellConstraints.DEFAULT));
 
-        builder.addSeparator("Editor Preferences", cc.xywh(1, 9, 5, 1));
-        builder.add(deletePromptBox, cc.xy(1, 11));
+        builder.addSeparator("Editor Preferences", cc.xyw(1, 9, 5));
+        builder.add(deletePromptBox, cc.xy(1, 11, CellConstraints.LEFT, CellConstraints.DEFAULT));
 
         this.setLayout(new BorderLayout());
         this.add(builder.getPanel(), BorderLayout.CENTER);



Mime
View raw message