Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JTable displays string in wrong order : my code problem or Java problem ?

807603Oct 18 2007 — edited Oct 18 2007
I've posted this question in Java.Swing but got no answer, so I'm posting it here to see if anyone has any ideas.

I have the following code that displays data in a JTable, most of the time it works fine, but I've realized when I have a cell with values like : "Snowboarding"+"[123456789]"
It would display it as : [Snowboarding[123456789

For a string like : "Chasing toddlers"+"<123456789>"
It would display it as : <Chasing toddlers<123456789

It not only moved the last bracket to the front, but also changed its direction from "]" to "[" and from ">" to "<"
Is there anything wrong with my code ? Or is this a Java problem ?

See next post for my programs. The programs I posted can be run easily, the Table_Panel class has a main method with GUI to show you a sample Table of what I mean, you just need to compile and run it.

Frank
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 15 2007
Added on Oct 18 2007
10 comments
265 views