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 Call a method to set data 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 "Call a method to set data to JTable?" Watch "Call a method to set data to JTable?" New topic
Author

Call a method to set data to JTable?

kelvin cheung
Ranch Hand

Joined: Mar 27, 2004
Posts: 120
Hi all,

I am inside a constructor of a JFrame which calls the method "setData".

The weird thing is that it doesn't go inside the for-loop.



I see this in console:

Step 1
Step 2
Step 4


"innhold" is a DefaultTableModel.
Rachel Swailes
Ranch Hand

Joined: May 18, 2004
Posts: 434
At Step 2, if you put in

System.out.println(tabell.size()) what does it say?

Cheers,
Rachel
kelvin cheung
Ranch Hand

Joined: Mar 27, 2004
Posts: 120
hi,

eheh....
thank you Rachel.
i forgot that the table was empty. dumb mistake
sorry about this question.


regards,
kelvin.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Call a method to set data to JTable?
 
Similar Threads
increment/decrement
A classic java problem. Why?
SCJP Operator question
throw/catch exception
String is not null, then it is?