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

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

Joined: Oct 21, 2002
Posts: 1
hi I think u can use JTable's removeColumn

[ October 21, 2002: Message edited by: an ik ]
I agree. Here's the link:
subject: Hiding a coulmn of JTable
It's not a secret anymore!