Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Swing components and weird bidirectional text handling

Thread Tools

Swing components and weird bidirectional text handling

Andrea Desole
Posts: n/a
I have a weird bug to solve.
If I copy and paste in a JTextField the following string (hope you can
see it):


it shows correctly. However, when the same string is added to a JList,
it's shown as:


which is not what I want. This is because the text is a mixture of
Arabic (right to left) and Western (left ro right).
According to this bug:

the component doing the things correctly is the JList, and not the
Now, why is the JList correct? If I write Arabic on the left and Western
on the right it means that I want it that way. Why is the list changing
it? Can I prevent the list from changing?
Also, how can I have at least a consistent behavior? Using Ctrl-Shift-O
as described in the bug report doesn't seem to help
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Thread.sleep(..) and Swing Components Java 4 10-04-2008 02:14 AM
bidirectional connection between two bidirectional ports Manfred Balik VHDL 12 09-10-2006 08:53 PM
Swing Components and application events JavaEnquirer Java 3 01-27-2006 07:08 PM
Swing Model Classes Updating Swing Components on a Thread Other Than AWT mkrause Java 0 05-06-2005 04:32 PM
SWING components adjustment in different resolutions - Should show scrollbars less than 800X600 and expand components over this resolution Bluetears76 Java 1 07-01-2004 09:01 PM