Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-23-2009, 11:06 AM
Member
 
Join Date: Oct 2008
Posts: 32
Rep Power: 0
Abder-Rahman is on a distinguished road
Default Stuck with NetBeans 6.5 / MySQL
Hello,

I created a very simple database with a "Table" with ONLY TWO rows, X and Y.

I retrieved the information using "SELECT * from table".

What I want to do is that I want to add a button to my GUI using NetBeans 6.5 that when I click on I get the result of "SELECT * from table"/

So, how can I add "SELECT * from table" to a button?

Thanks.
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 04-23-2009, 11:10 AM
PhHein's Avatar
Senior Member
 
Join Date: Apr 2009
Location: Germany
Posts: 494
Rep Power: 1
PhHein is on a distinguished road
Default
That is not a DB issue, but a Swing problem. Add an ActionListener to the button.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL/JDBC Mysql query output thelinuxguy Advanced Java 4 02-13-2009 02:57 AM
really stuck now.. shongo Advanced Java 2 11-09-2008 03:56 AM
Stuck in need of help! Zombie_Leg! New To Java 1 09-23-2008 03:22 AM
database with mysql using the netbeans 6.0 kwesiaryee New To Java 2 05-02-2008 05:27 AM
MySql in NetBeans 5.0 javagal NetBeans 6 07-04-2007 03:34 PM


All times are GMT +2. The time now is 04:24 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org