Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable not populating  RSS feed

 
Rohit Kedia
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an Issue here I am trying to Populate the JTable by bring the Data from Database but it is not getting populated , am I doing some mistake...







 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From your code:
1) I do not see any code which will populate the table if it is not null.
2) You have a call to table.setVisible. If you are adding the table to an already visible UI, you need to call revalidate and repaint on the parent to which the table is being added.

If not post your SSCCE code
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!