Corrected inversion RIGHT/LEFT for anchor on gridbag constraint
[scilab.git] / 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: