Corrected inversion RIGHT/LEFT for anchor on gridbag constraint 57/14157/2
Pierre-Aime Agnel [Thu, 27 Mar 2014 10:27:20 +0000 (11:27 +0100)]
Change-Id: I547489188bacb17280a1a21c441e846fa2bd33a8

scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/tab/SwingScilabCommonPanel.java

index 4d12acf..f745c57 100644 (file)
@@ -399,7 +399,7 @@ public class SwingScilabCommonPanel {
 
             // Anchor
             switch (uicontrol.getGridBagAnchorAsEnum()) {
-                case LEFT:
+                case RIGHT:
                     constraints.anchor = GridBagConstraints.EAST;
                     break;
                 case UPPER:
@@ -408,19 +408,19 @@ public class SwingScilabCommonPanel {
                 case LOWER:
                     constraints.anchor = GridBagConstraints.SOUTH;
                     break;
-                case LOWER_LEFT:
+                case LOWER_RIGHT:
                     constraints.anchor = GridBagConstraints.SOUTHEAST;
                     break;
-                case LOWER_RIGHT:
+                case LOWER_LEFT:
                     constraints.anchor = GridBagConstraints.SOUTHWEST;
                     break;
-                case RIGHT:
+                case LEFT:
                     constraints.anchor = GridBagConstraints.WEST;
                     break;
-                case UPPER_LEFT:
+                case UPPER_RIGHT:
                     constraints.anchor = GridBagConstraints.NORTHEAST;
                     break;
-                case UPPER_RIGHT:
+                case UPPER_LEFT:
                     constraints.anchor = GridBagConstraints.NORTHWEST;
                     break;
                 case CENTER: