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 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 "JTable" Watch "JTable" New topic
Author

JTable

java swing
Greenhorn

Joined: Aug 15, 2001
Posts: 2
Hi,
I like to make a JTable class (reusuable) with a parameter (having the value of rows) and call this (when needed) to add in a JScrollPane which is in another class. Columns are fixed and their names are specified inside this (JTable) class. This class should make the rows for the table by the parameter. Each column gets it value from each method like get_name, get_age etc.
Well, so far I am trying apply a TableModel to my JTable. But got stuck to make the loop which makes the necesary amount of rows and get the each column values !!
Do you have suggestions ?? Or sourcecode of almost similar class ??
Thanks
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

"java swing"
your name doesn't agree with the javaranch guidelines.
please take a moment and re-register after reviewing the
guidelines at http://www.javaranch.com/name.jsp
thanks for your cooperation.
- satya
ps: phony names are also considered a violation. moreso,
in your case, you probably are violating Sun's copyrights...

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
wood burning stoves
 
subject: JTable
 
Similar Threads
jtable
JTable
JTable question
JTable Trouble
JTable