The text in my swing.jList is not align even if I use a padRight function. What is weird is that when I print this text with "System.out.println", all the lines are align correctly. Any suggestions?
there is some codes:
Vector temp2 = new Vector();
for(int i=0; i<group.list.size(); i++)
temp2.add(StringHelper.padRight(((Html)group.list.get(i)).IfIndex, 10) +
StringHelper.padRight(((Html)group.list.get(i)).Description, 25) +
jList2 = new javax.swing.JList();
so the strings description, index and Iftype is on the same line but not align and what I have just discovered is that the string length is the same for each string in the same column. Apparently, each character is not the same dimention(width).