Solved

JTable using NetBeans  , retrieve data from database

Posted on 2006-11-21
5
8,714 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

707 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