• Post Reply Bookmark Topic Watch Topic
  • New Topic

JList issue

 
Chinmay Bajikar
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am reading a txt file line by line and having each line as a
element in a JList.
This txt file is actually a tab delimited file.
But the tab is being truncated in JList.
Somebdy told me tht JList cannot recognize tabs and other special chars.
Is there anyway to get around this limitation.
Thanks in advance,
Chinmay..
:roll:
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the Swing forum.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're trying to provide columns of data in a JList, it would be better to use a JTable.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!