Solved

JTable using NetBeans  , retrieve data from database

Posted on 2006-11-21
5
8,586 Views
Last Modified: 2012-06-21
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
Comment
Question by:moodyahmad
  • 2
5 Comments
 
LVL 14

Expert Comment

by:hoomanv
ID: 17987532
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
 

Author Comment

by:moodyahmad
ID: 17989916
please can you help me in using the SwingSet compnent
0
 
LVL 14

Accepted Solution

by:
hoomanv earned 500 total points
ID: 18001261
Download the demo source codes, Example5 shows how to populate query data in a Table component
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now