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

Display Problem in JTable

suresh Rajan
Greenhorn

Joined: Dec 11, 2008
Posts: 3
hi sir...i am trying to dispay oracle data through JTable....
i have read the values from oracle...but i cant display the read
values in JTable....nothing displayed in table.......
i have attached my code for references..........

pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
You appear to be creating a new JTable with each iteration of your loop through your result set, and this just doesn't make much sense. Would you have better luck if your JTable instead used a DefaultTableModel object for its data, and if you added a row of data to this model with each loop?

This and your other post suggest that you may benefit by going through much more of the Sun Swing tutorials before doing much more Swing coding.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Display Problem in JTable
 
Similar Threads
JRadioButton in JTable
Adding images in JTable
JTable display problem
no applet displayed
Problem with JTable