This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes table row creation problem 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 "table row creation problem" Watch "table row creation problem" New topic
Author

table row creation problem

Sandeep Mukherji
Ranch Hand

Joined: Mar 23, 2008
Posts: 46
hi to all,

I have created function to create a table having n number of rows.

Now I want to add rows to the table at the ActionKey event on the table. How can I do it?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10170
    
    8

Originally posted by Sandeep Mukherji:
hi to all,

I have created function to create a table having n number of rows.

Now I want to add rows to the table at the ActionKey event on the table. How can I do it?


The default table model has addRow and insertRow methods which you can use.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
Don't get me started about those stupid light bulbs.
 
subject: table row creation problem
 
Similar Threads
Problem with selection in JTable
JTable question....again!
Need Help in Modification MultiRowHeaderExample
Removing rows from DefaultTableModel
scrolling JTable to make cells visible