-
Bug
-
Resolution: Fixed
-
P4
-
1.3.0
-
merlin
-
x86
-
windows_98
Name: skT88420 Date: 02/07/2000
java version "1.3.0rc1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-T)
Java HotSpot(TM) Client VM (build 1.3.0rc1-S, mixed mode)
Steps to reproduce:
Run the attached test case; expand the "sports" node
or the "food" node. The lower right corner of the
scroll pane becomes white. It should not. It should
be grey. Force a repaint, for example by obscuring
this part of the window and making it visible again;
you'll see that the corner will now become grey as
expected. Note: all of this doesn't happen when you
expand the "colors" node.
I think this bug didn't exist in 1.2.2, but I'm not sure.
--
import java.awt.*;
import javax.swing.*;
public class ScrollTreeBug extends JDialog {
public ScrollTreeBug() {
super((Frame) null, true);
JPanel pnl = new JPanel();
pnl.setLayout(new GridBagLayout());
JScrollPane scp = new JScrollPane(new JTree());
pnl.add(scp, new GridBagConstraints(
0, GridBagConstraints.RELATIVE, 1, 1, 1, 1,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(12, 12, 11, 11), 0, 0));
setContentPane(pnl);
setSize(new Dimension(128, 200));
setLocation((getToolkit().getScreenSize().width - getWidth()) / 2,
((getToolkit().getScreenSize().height) - getHeight()) / 2);
setVisible(true);
}
public static void main(String[] args) {
new ScrollTreeBug();
}
}
(Review ID: 100887)
======================================================================