-
JList tabs
i'm doing an application in java and can't work out how to use tabs in a JList.
the string:
"Seat: " + getSortedSeat(getSeatNumber()) + "\tPassenger: " + getName() + "\tAge: " + getAge() + "\tGender: " + getGender();
worked in the console display but in a JList the tabs don't show up at all
any insight into the problem will be greatly appreciated.
-
Ultimate Member
you've answered your own question, \t doesn't work in jList's. You need to use spaces (or define a variable with set number of spaces)
-
thanks for that, just one more thing the tutor neglected to tell us
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|