File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on Jtables

 
Karan Raj
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
Can anybody tell me ..how can i display data in table if it has subheadings in it. For example

//--------------------customar.dat--------------
ID Name ph.no
Florida(45/6,Thomasvile-09)

231 Sam 55398444
534 Hone 55346674
Texas(332/3 ,Downtown-22)
122 Raseen 23454464
544 Plank 45223665
Indiana(44/2, Indianapolis-88)
53 ush 65322423
22 villy 65364546

//-----------------------------------

I have the above output file. i have to convert it to table format.
i able to generate the table ...but don't know how to put subheadings in it.please help me in this.
thanks,
Karan
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Swing / JFC / AWT forum...
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Karan,
I believe you are asking, "how to display multi-line text in a 'JTable' cell?"
If so, then, for your information, here is one example, and here is another.
Good Luck,
Avi.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic