-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
1.4.0
-
x86
-
windows_xp
Name: rmT116609 Date: 08/26/2003
FULL PRODUCT VERSION :
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
FULL OS VERSION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
Under Metal LookAndFeel JScrollPane has empty pixel (visual glitch) at the top right corner at the top scroll button (vertical scroller). Scrollbar has dark line border but it has one white pixel.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Compile and run attached sample application
2. When application's frame appears take a close look at vertical scroll bar (at its top right corner).
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Top scroll button has white pixel (visual glitch)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import javax.swing.*;
import java.awt.*;
/**
* @author Vladimir Kondratyev
*/
public class test {
public static void main(String[] args) {
JFrame frame = new JFrame("test application");
JScrollPane scrollPane = new JScrollPane(new JTextArea());
scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
Container contentPane = frame.getContentPane();
contentPane.setLayout(new BorderLayout());
contentPane.add(scrollPane, BorderLayout.CENTER);
contentPane.add(new JLabel(" "), BorderLayout.EAST);
frame.pack();
frame.show();
}
}
---------- END SOURCE ----------
(Incident Review ID: 200613)
======================================================================