• Post Reply Bookmark Topic Watch Topic
  • New Topic

Showing SQL in a JTable  RSS feed

 
Torben Hildebrandt
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've got a JInternalFrame with a textfield and a table. A user can enter keywords to search for in a database and results are shown in the table below. It works, but results are only shown if the user drags the frame. How can I show result sets/ update my table without moving the frame?
[ January 09, 2002: Message edited by: Torben Hildebrandt ]
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you remember to call fireTableDataChanged() in the method of your TableModel that is adding the new data to the table?

-Nate
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!