Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

hide some JTable column names

843805Feb 1 2007 — edited Feb 1 2007
Hello.

It's possible to hide some column names in a JTable.
Let's say i ahev this:
String[] columnNames = {
                                "Name",
                                "Surname",
                                "Adress",
                                "Email"                                
                                };
Object values[][]=new Object [100][4];

JTable table = new Jtable(values, columnNames);
but in the GUI i just wanna see the columns Name, Surname and Adress.
Is this possible and how can i achive this if it is possible?
Thank you.
noe Rocha.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 1 2007
Added on Feb 1 2007
24 comments
317 views