Results 1 to 2 of 2
  1. #1
    Abder-Rahman is offline Member
    Join Date
    Oct 2008
    Rep Power

    Default Stuck with NetBeans 6.5 / MySQL


    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?


  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Rep Power


    That is not a DB issue, but a Swing problem. Add an ActionListener to the button.

Similar Threads

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts