This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JTable problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable problem" Watch "JTable problem" New topic
Author

JTable problem

Jude Fawly
Ranch Hand

Joined: Dec 01, 2004
Posts: 33
hi,

when i use the DefaultTableModel like this:
DefaultTableModel df = new DefaultTableModel()
i can add rows and columns to the table using addColumn and addRows method.
But when i use this class to load my JTable with data from the database, i can not
add rows and columns.
How can i add rows to the JTable when i use my own class that extends DefaultTableModel to load the JTable with
data from the database!

thanks.


Teach me to die that so I may<br />Rise glorious at the awful day
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JTable problem
 
Similar Threads
refreshing a JTable
JTable
JTable
JTable(!!!)
Columns on JTable