-
Bug
-
Resolution: Unresolved
-
P4
-
7, 8u60
-
x86
-
os_x
FULL PRODUCT VERSION :
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64
A DESCRIPTION OF THE PROBLEM :
In certain cases, the horizontal scroll bar in a RTL scroll pane is layed out incorrectly.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the test program.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The horizontal scroll bar should be right aligned in the scroll pane.
ACTUAL -
The horizontal scroll bar is left aligned.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
package test;
import java.awt.*;
import javax.swing.*;
public class Test
{
/*
* The horizontal scroll bar may be layed out incorrectly if the decision to display a vertical scroll bar
* is made only after the decision to display the horizontal scroll bar. The available bounds are updated but
* the horizontal scroll bar bounds (which depend upon the available bounds) are not updated.
*/
public Test()
{
JFrame frame = new JFrame("Test");
JPanel view = new JPanel();
view.setPreferredSize(new Dimension(200, 83));
JScrollPane sp = new JScrollPane(view);
sp.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
sp.setPreferredSize(new Dimension(100, 100));
sp.setMaximumSize(new Dimension(100, 100));
frame.add(sp);
frame.pack();
frame.setVisible(true);
}
public static void main(String[] args)
{
new Test();
}
}
---------- END SOURCE ----------
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64
A DESCRIPTION OF THE PROBLEM :
In certain cases, the horizontal scroll bar in a RTL scroll pane is layed out incorrectly.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the test program.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The horizontal scroll bar should be right aligned in the scroll pane.
ACTUAL -
The horizontal scroll bar is left aligned.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
package test;
import java.awt.*;
import javax.swing.*;
public class Test
{
/*
* The horizontal scroll bar may be layed out incorrectly if the decision to display a vertical scroll bar
* is made only after the decision to display the horizontal scroll bar. The available bounds are updated but
* the horizontal scroll bar bounds (which depend upon the available bounds) are not updated.
*/
public Test()
{
JFrame frame = new JFrame("Test");
JPanel view = new JPanel();
view.setPreferredSize(new Dimension(200, 83));
JScrollPane sp = new JScrollPane(view);
sp.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
sp.setPreferredSize(new Dimension(100, 100));
sp.setMaximumSize(new Dimension(100, 100));
frame.add(sp);
frame.pack();
frame.setVisible(true);
}
public static void main(String[] args)
{
new Test();
}
}
---------- END SOURCE ----------