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 Hiding a coulmn of JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Hiding a coulmn of JTable" Watch "Hiding a coulmn of JTable" New topic
Author

Hiding a coulmn of JTable

Manoj Tyagi
Ranch Hand

Joined: Jun 11, 2002
Posts: 35
Hi everybody,
I am having a JTable TableColumnModel with 6 coulmns. Now while inserting/updating database i need the values of all columns but while to display user i want to hide 2 columns.
Thats I want to display only 4 columns of a JTable, however internally its model will have 6 columns.
How can i achieve this task of hiding any particular column from view.
Please help me out,
Waiting for the reply.
Manoj Tyagi
an ik
Greenhorn

Joined: Oct 21, 2002
Posts: 1
hi I think u can use JTable's removeColumn
see
http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/JTable.html#removeColumn

goodluck
[ October 21, 2002: Message edited by: an ik ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hiding a coulmn of JTable