* Bug #12758 fixed - Focus issue on plot3d command 21/12121/2
Simon Marchetto [Tue, 23 Jul 2013 13:31:42 +0000 (15:31 +0200)]
Change-Id: I00babf07379f64f200754982530e07987e8b2541

scilab/CHANGES_5.5.X
scilab/modules/ui_data/src/java/org/scilab/modules/ui_data/variablebrowser/ScilabVariableBrowser.java

index 493d8b0..ed00bbf 100644 (file)
@@ -494,3 +494,5 @@ Bug fixes
 * Bug #12715 fixed - Variable cross in pspect and cspect has been renamed because of conflicts with cross function.
 
 * Bug #12736 fixed - In SciNotes, the Completion window appeared only in first tab.
+
+* Bug #12758 fixed - Focus issue on plot3d command.
index 97c8ae7..e425209 100644 (file)
@@ -81,6 +81,7 @@ public final class ScilabVariableBrowser implements VariableBrowser {
                 window.setLocation(0, 0);
                 window.setSize(500, 500);
                 window.setVisible(true);
+                window.toFront();
             }
         }
         return instance;
@@ -98,7 +99,6 @@ public final class ScilabVariableBrowser implements VariableBrowser {
                 }
             });
         }
-        ScilabVariableBrowser.updateVariableBrowser();
     }
 
     /**
@@ -107,8 +107,7 @@ public final class ScilabVariableBrowser implements VariableBrowser {
     public static void updateVariableBrowser() {
         if (instance != null) {
             SwingScilabWindow window = (SwingScilabWindow) SwingUtilities.getAncestorOfClass(SwingScilabWindow.class, browserTab);
-            window.setVisible(true);
-            window.toFront();
+            window.repaint();
         }
     }