JTable displays string in wrong order : my code problem or Java problem ?
807603Oct 18 2007 — edited Oct 18 2007I'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