-
Bug
-
Resolution: Fixed
-
P2
-
7
-
b68
-
x86
-
windows_xp
See details and code sample in the 6526631 CR.
Fix the source code as shown below:
- ComponentOrientation orientation = jTree1.getComponentOrientation();
- if (orientation.isLeftToRight()) {
- jTree1.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
- } else {
- jTree1.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
- }
+ ComponentOrientation orientation = jTree1.getComponentOrientation();
+ if (orientation.isLeftToRight()) {
+ jScrollPane1.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
+ } else {
+ jScrollPane1.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
+ }
Fix the source code as shown below:
- ComponentOrientation orientation = jTree1.getComponentOrientation();
- if (orientation.isLeftToRight()) {
- jTree1.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
- } else {
- jTree1.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
- }
+ ComponentOrientation orientation = jTree1.getComponentOrientation();
+ if (orientation.isLeftToRight()) {
+ jScrollPane1.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
+ } else {
+ jScrollPane1.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
+ }
- relates to
-
JDK-6526631 RFE: JScrollPane behaves wrong when a child component has RIGHT_TO_LEFT orientation
- Open
-
JDK-6865565 Test failed: /test/closed/javax/swing/JInternalFrame/6325652/bug6325652.java
- Resolved