Results 1 to 7 of 7

Thread: Netbeans JTable

  1. #1
    sysout is offline Member
    Join Date
    Aug 2009
    Posts
    66
    Rep Power
    0

    Default Netbeans JTable

    I've create a Table from Netbeans.
    I wanna insert Rows from my database (mysql) to JTable

    Please help me.
    I will really appreciate your help. Thanks

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Netbeans has a way of binding the database to the table, and your best bet towards learning how to do this is by going through the NetBeans help files. Best of luck.

  3. #3
    sysout is offline Member
    Join Date
    Aug 2009
    Posts
    66
    Rep Power
    0

    Default

    Not works palz..
    seems to be no solutions for this?

  4. #4
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    Of course it works and people have done it lots of times.
    You generally have two similar options. The first is to read the Netbeans tutorials on how to bind a JTable to a database table. The second option is to read how to use TableModels and populate their values with data returned from a nice DAO layer that you would have to write yourself.
    The two options are similar in that they both require you to start by reading.

  5. #5
    sysout is offline Member
    Join Date
    Aug 2009
    Posts
    66
    Rep Power
    0

    Default

    yeah, finally it works..

    but the JTable won't refresh after I add a new row, but for delete row, it works, because I didn't call for a new form for deleting or refreshing, but I use a new form for add (insert) a new row and it doesn't want to refresh after Insert.

    And how to Update? when I use web programming, I can passing through parameter, for desktop programming, how to do like this?

    Thanks againn ^^

  6. #6
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    It all depends on how you have implemented it I guess. You'd have to isolate the problem and perhaps post parts of the code you think is relevant and misbehaving.

  7. #7
    sysout is offline Member
    Join Date
    Aug 2009
    Posts
    66
    Rep Power
    0

Similar Threads

  1. Replies: 3
    Last Post: 03-09-2009, 08:37 AM
  2. Netbeans Jtable
    By Manfizy in forum NetBeans
    Replies: 16
    Last Post: 11-13-2008, 10:15 AM
  3. Regarding JTable
    By adeeb in forum AWT / Swing
    Replies: 12
    Last Post: 06-19-2008, 08:39 AM
  4. Replies: 2
    Last Post: 05-15-2008, 11:15 AM
  5. How to add in a new row in Jtable?
    By Ry4n in forum AWT / Swing
    Replies: 0
    Last Post: 01-18-2008, 01:26 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
  •