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 JTable: How to combine several columns Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable: How to combine several columns " Watch "JTable: How to combine several columns " New topic

JTable: How to combine several columns

Laurent Sate

Joined: Dec 18, 2001
Posts: 10
I have a JTable with 4 columns and some rows.

In fact i want to combine the 4 columns in 1 for the first row. How can I do that?
Thanx for your help.
[ January 22, 2002: Message edited by: LS ]
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121


Please re-register with a user name that follows the JavaRanch Offical UserName Policy. Your user name must be in the format "First Name" + space + "Last Name", and can't be obviously fake.

As to merging columns... you'd probably want to do that in whatever TableModel you are using in your table...


Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: JTable: How to combine several columns
It's not a secret anymore!