Meaningless Drivel is fun!*
The moose likes Swing / AWT / SWT and the fly likes Adding column to Jtable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Adding column to Jtable" Watch "Adding column to Jtable" New topic

Adding column to Jtable

Samlin Ford

Joined: Mar 08, 2004
Posts: 2
I have a JTable with 3 columns and I have 4 checkboxes outside the JTable. User can add new columns with choosing those checkboxes. My Table has its own Table model that extends from DefaultTableModel.I have a special columns in my JTable and I want that this columns appear always at the end of the JTable, even when the user add new columns to the JTable.
please help me with that.
Sam F
Eddie Vanda
Ranch Hand

Joined: Mar 18, 2003
Posts: 281
This was answered befor in this topic

The nice thing about Standards is that there are so many to choose from!
It is sorta covered in the JavaRanch Style Guide.
subject: Adding column to Jtable
Similar Threads
JTable - selecting multiple rows by selecting checkbox column
JTable problem
Column in jtable