File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

showing my data in a jtable

 
egbai mmumene
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot i'v gotten all the bugs out. Now my only problem is i dont know how to use jtable to views entrys in the database then the table should appear within the frame
 
Michael Dunn
Ranch Hand
Posts: 4632
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here's the JTable tutorial, which should help with the GUI part

http://docs.oracle.com/javase/tutorial/uiswing/components/table.html

you need to understand that Swing is single-threaded and everything (painting, listeners etc) is done on that thread (EDT).
if you try to retrieve database data on that thread, the gui will freeze until data-retrieval is completed, so you must do the
db stuff in a separate thread, or SwingWorker.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic