Bug 143675 - Bidi3.2: [HCG] Improve component orientation support in VE for Swing
Summary: Bidi3.2: [HCG] Improve component orientation support in VE for Swing
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: VE (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: VE Bugzilla inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-25 04:53 EDT by Lina Kemmel CLA
Modified: 2011-06-13 11:38 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lina Kemmel CLA 2006-05-25 04:53:24 EDT
It seems that the out-of-box orientation support for Swing components can be improved by making pretty simple changes to the underlying Java code:

(1) Call java.awt.Component#applyComponentOrientation (available since JDK 1.4) instead of setComponentOrientation.
(2) Apply container's orientation not earlier than all its children are added to the content pane.
(3) Eliminate any absolute horizontal positioning: e.g. if using BorderLayout, replace BorderLayout.WEST by BorderLayout.LINE_END and BorderLayout.EAST BorderLayout.LINE_START.

Can these be implemented?

As a side note, it would be nice if java.awt.Window#pack() is called before the Window is set visible.
Comment 1 Lina Kemmel CLA 2006-05-25 04:58:38 EDT
> replace BorderLayout.WEST by BorderLayout.LINE_END and BorderLayout.EAST
> BorderLayout.LINE_START.
Sorry: replace BorderLayout.WEST by BorderLayout.LINE_START and BorderLayout.EAST
by BorderLayout.LINE_END.