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 Wants Header of a JTable to be static. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Wants Header of a JTable to be static." Watch "Wants Header of a JTable to be static." New topic
Author

Wants Header of a JTable to be static.

Jatinder Arora
Greenhorn

Joined: Jun 12, 2005
Posts: 4
I have a JTable added to the JscrollPane and i want that when i move the horiontal scrollbar the header should not move with the scrollbar.


jatinder
Tad Dicks
Ranch Hand

Joined: Nov 16, 2004
Posts: 264
By header do you mean column headings? If thats the case I'm not sure thats possible. You could create a table with no column headings, and create your own header (JLabel or other) that is not inside the scrollpane.

-Tad
Jatinder Arora
Greenhorn

Joined: Jun 12, 2005
Posts: 4
Header means column header.
The table i have generated has two parts in header. Each column has an individual header and also each column has one common header.I want that common header should not move with scrollpane.
Please let me know if you have any idea to do that.
Thanx
 
GeeCON Prague 2014
 
subject: Wants Header of a JTable to be static.