Delete children in scrollable frame 06/15406/2
Bruno JOFRET [Wed, 22 Oct 2014 14:50:45 +0000 (16:50 +0200)]
Change-Id: I9f8163acfb6eaa4a6e8807a63fec217173370a5f

scilab/modules/gui/src/java/org/scilab/modules/gui/SwingView.java

index 4b7f83d..bb18d0c 100644 (file)
@@ -1165,7 +1165,7 @@ public final class SwingView implements GraphicView {
 
                 /* Remove an uicontrol */
                 if (childType == __GO_UICONTROL__) {
-                    updatedComponent.remove((Component) allObjects.get(childId).getValue());
+                    updatedComponent.getPanel().remove((Component) allObjects.get(childId).getValue());
                     needRevalidate = true;
                 }
             }