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 / JFace and the fly likes Problem with JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply Bookmark "Problem with JTable" Watch "Problem with JTable" New topic
Author

Problem with JTable

Anusha Jv
Greenhorn

Joined: Jul 26, 2001
Posts: 19
Hi all,
I want to merge two columns in JTable
Pls help me in doing so.

Thanks
Anu
Nathanael Ulrick
Greenhorn

Joined: Jul 17, 2001
Posts: 22
I don't think there's a quick and easy way to do this.
You'll just have to create a custom TableModel of some sort which will take 2 TableModels and pretend that it's one big one. Still relatively painless, probably < 100 lines.
Thomas Suer
Ranch Hand

Joined: Sep 03, 2001
Posts: 50
Hi Anu!
I have found a lot of examples on this site, also an example of a "groupable table header".
Try this out: http://www2.gol.com/users/tame/swing/examples/JTableExamples1.html
Tom
 
IntelliJ Java IDE
 
subject: Problem with JTable
 
Threads others viewed
Jtable
JTable
jtable
JTable
IntelliJ Java IDE