Panel should be opaque for bgcolor to apply. 20/14020/2
Bruno JOFRET [Fri, 14 Mar 2014 11:08:00 +0000 (12:08 +0100)]
Change-Id: I9cc8911267e00d77b8d209960b17f1825a420107

scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/tab/SwingScilabDockablePanel.java
scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/tab/SwingScilabStaticPanel.java

index c59a5c5..9f395e9 100644 (file)
@@ -187,7 +187,8 @@ public class SwingScilabDockablePanel extends View implements SimpleTab, FocusLi
         scrolling = null;
 
         this.setVisible(true);
-
+        setOpaque(true);
+        
         getTitlebar().addFocusListener(this);
         addFocusListener(this);
         setCallback(null);
@@ -219,7 +220,8 @@ public class SwingScilabDockablePanel extends View implements SimpleTab, FocusLi
         //setContentPane(scrolling.getAsContainer());
 
         this.setVisible(true);
-
+        setOpaque(true);
+        
         getTitlebar().addFocusListener(this);
         addFocusListener(this);
         setCallback(null);
@@ -281,7 +283,7 @@ public class SwingScilabDockablePanel extends View implements SimpleTab, FocusLi
         layerdPane.setBorder(null);
         //layerdPane.add(canvas, JLayeredPane.FRAME_CONTENT_LAYER);
         uiContentPane = new JLayeredPane();
-        uiContentPane.setOpaque(false);
+        uiContentPane.setOpaque(true);
         uiContentPane.setLayout(null);
         uiContentPane.setBorder(null);
         layerdPane.add(uiContentPane, JLayeredPane.DEFAULT_LAYER + 1, 0);
index e621c97..7445655 100644 (file)
@@ -59,7 +59,7 @@ public class SwingScilabStaticPanel extends SwingScilabScrollPane implements Swi
         layerdPane.setLayout(null);
         layerdPane.setOpaque(false);
 
-        uiContentPane.setOpaque(false);
+        uiContentPane.setOpaque(true);
         uiContentPane.setLayout(null);
         layerdPane.add(uiContentPane, JLayeredPane.DEFAULT_LAYER + 1, 0);