File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Question on Jtables

Karan Raj

Joined: Jan 27, 2004
Posts: 16
Can anybody tell me can i display data in table if it has subheadings in it. For example

ID Name

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.
Dirk Schreckmann

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: 1141

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,
I agree. Here's the link:
subject: Question on Jtables
It's not a secret anymore!