That is a good idea! Thanks, I'll try it.
i'd rather not use a JTable but if i must then i will.
Type: Posts; User: rhalliwell1
That is a good idea! Thanks, I'll try it.
i'd rather not use a JTable but if i must then i will.
Unfortunately your solution, although very intuitive and simple, will not quite do.
Because the items in the columns are of different sizes, just adding " " will not keep them aligned but has...
System.out.println("Tab\tTab");
Works correctly. :S
Maybe tabs don't work in JLists?
SSCCE:
import javax.swing.*;
System.out.println("Tab\tTab");
Works correctly. :S
Maybe tabs don't work in JLists?
One tab:
http://i.imgur.com/ptXyY.png
I just want them to be aligned in columns, like they are but actually aligned.
Hi,
I'm having a problem with the tabbing space in string. Here's the code (within a class that extends DefaultListCellRenderer):
super.setText(date + "\t\t\t\t\t\t\t\t\t\t" +
...