File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Question on Jtables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Question on Jtables" Watch "Question on Jtables" New topic
Author

Question on Jtables

Karan Raj
Greenhorn

Joined: Jan 27, 2004
Posts: 16
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

Joined: Dec 10, 2001
Posts: 7023
Moving this to the Swing / JFC / AWT forum...


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1135

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question on Jtables