-
Bug
-
Resolution: Cannot Reproduce
-
P3
-
None
-
1.2.0
-
x86
-
solaris_2.6
The first component in the Panel is saved, all the components in the panel are removed, the panel's layout is set from GridLayout to BorderLayout, the panel is validated, the saved component is added to the panel, the panel is validated. The component that is saved and added is a JPanel with a BorderLayout, the center is a canvas, the south is a JPanel that contains a ToolBar and a JComboBox. In the scenario above in win32 only this panels center portion displays, and the south portion does not display. The south portion attributes are that it is valid, is showing, and is visible. But yet the panel does not display, only upon resizing the applet window will the south portion of the panel display. Here's a snippet from TestLayout.java :
Component cmp = thePanel.getComponent(0);
thePanel.removeAll();
thePanel.setLayout(new BorderLayout());
thePanel.validate();
thePanel.add(cmp);
thePanel.validate();
TestLayout.java can be found at /home/lichtenw/JavaMedia/2d/TestProduct/src/TestLayout.java
I was unable to reproduce this problem using a small test of just labels and buttons. So in order to reproduce the problem you will have to run the Java 2D TestProduct :
/home/lichtenw/JavaMedia/2d/TestProduct
runnit.bat
In the TreeView select the arcs_curves/arcs test. In the arcs test ToolBar select the button with the two sheets of paper, pressing this button will clone the canvas panel. Now your in GridLayout mode. In the cloned panel you will find a scissors button, pressing this button will remove the cloned canvas panel. This is when the snippet code from above is called. You will see the canvas, but will not see the ToolBar and ComboBox.
Component cmp = thePanel.getComponent(0);
thePanel.removeAll();
thePanel.setLayout(new BorderLayout());
thePanel.validate();
thePanel.add(cmp);
thePanel.validate();
TestLayout.java can be found at /home/lichtenw/JavaMedia/2d/TestProduct/src/TestLayout.java
I was unable to reproduce this problem using a small test of just labels and buttons. So in order to reproduce the problem you will have to run the Java 2D TestProduct :
/home/lichtenw/JavaMedia/2d/TestProduct
runnit.bat
In the TreeView select the arcs_curves/arcs test. In the arcs test ToolBar select the button with the two sheets of paper, pressing this button will clone the canvas panel. Now your in GridLayout mode. In the cloned panel you will find a scissors button, pressing this button will remove the cloned canvas panel. This is when the snippet code from above is called. You will see the canvas, but will not see the ToolBar and ComboBox.