File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Call a method to set data to JTable?