JDK-6508183 : JTree level handles aligned right in RTL Orientation instead of center.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6u1
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2006-12-27
  • Updated: 2010-04-02
  • Resolved: 2007-01-08
Related Reports
Duplicate :  
Description
Bug Info:
=======
The tree nodes level handles aligned center in LTR orientation and there is no much space between the node icon and handles and also looks perfect but in RTL orientation the tree nodes level handles aligned right and there is a huge space between the node icon and handle and its looks ugly.

You can see the clear difference in metal and window look and feel.
Its a regression after the fix(6453451).

JDK Info:
=======
java version "1.6.0_01-ea"
Java(TM) SE Runtime Environment (build 1.6.0_01-ea-b01)
Java HotSpot(TM) Client VM (build 1.6.0_01-ea-b01, mixed mode)

java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b04)
Java HotSpot(TM) Client VM (build 1.7.0-ea-b04, mixed mode)

Steps to Reproduce:
===============
1. Download the attached java code.
2. Execute the application with either 7.0_b04 or 6U1_b01 build.
3. Verify the nodes level handles and space between the icon and level handle in the both orientations.

Expected Results:
=============
In both LTR and RTL orientation the level handles should aligned center below the node and there should not be huge space between the node icon and level handle.

Actual Results:
===========
In LTR orientation the level handle aligned center below the node but RTL orientation the level handle aligned right below the node.
There should be huge space between the node icon and level handle and it looks ugly.


Please find the attached image file for identifying the variations between b104 and 6U1_b01.

Comments
EVALUATION I've actually already fixed these problems under 6436903. Closing as a duplicate.
08-01-2007