• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 8896
  • Last Modified:

JTable using NetBeans , retrieve data from database

hi experts

can you tell me how i can retrieve data from database "MySql" and binding this data "Customers table" to jtable component , i am now new to swing and use the NetBeans IDE  , please help me in step by step in details how i can retrieve data from database to JTable component for view by using the NetBeans .

thank you
0
moodyahmad
Asked:
moodyahmad
  • 2
1 Solution
 
hoomanvCommented:
Use already existing data-aware components.
JBuilder provides a rich API to work with JDBC compatible databases and frees you from writing low-level GUI logics for such frequent tasks like binding a QueryDataSet to a JTable component
There are also open source libraries that do this, but I've not used them

http://www.sql-workbench.net/index.html
http://swingset.sourceforge.net/index.php
0
 
moodyahmadAuthor Commented:
please can you help me in using the SwingSet compnent
0
 
hoomanvCommented:
Download the demo source codes, Example5 shows how to populate query data in a Table component
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now