Results 1 to 3 of 3

Thread: JList tabs

  1. #1
    Junior Member
    Join Date
    Mar 2003
    Posts
    26

    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.

  2. #2
    Ultimate Member DocEvi1's Avatar
    Join Date
    Dec 2001
    Posts
    2,330
    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)
    Stefan

  3. #3
    Junior Member
    Join Date
    Mar 2003
    Posts
    26
    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
  •