wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Stii having problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Stii having problems" Watch "Stii having problems" New topic
Author

Stii having problems

dave vanweed
Greenhorn

Joined: Feb 06, 2003
Posts: 6
This is my code that i have so far could someone please ajdust my code so that it will add what the user puts in the column firstname to a string array and do the same with the next column (lastname)
and the print both out.
i am still having trouble constructing it
thanks very much
davey
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
I am not actually going to do this for you. It kind of sounds like homework to me. Here is a hint. You don't have anything even coded to try to get them out.
Add a button and attach a listener to it. When the button is pressed, loop through the table and extract the values. Since you don't have a model for your table you will need to do something like:
table.getModel().getValueAt(row,column);
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Stii having problems