IntelliJ Java IDE
The moose likes Swing / AWT / SWT / JFace and the fly likes JTable: How to combine several columns Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply Bookmark "JTable: How to combine several columns " Watch "JTable: How to combine several columns " New topic
Author

JTable: How to combine several columns

Laurent Sate
Greenhorn

Joined: Dec 18, 2001
Posts: 10
Hello,
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
Bartender

Joined: Oct 18, 2000
Posts: 4120

LS,

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

-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
IntelliJ Java IDE
 
subject: JTable: How to combine several columns
 
Threads others viewed
Updating Database by editing jtable
JTable in a JScrollPane (last column heading of table always cut)
Updating Database by editing jtable
jtable
JTable
developer file tools