Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-24-2009, 05:31 AM
Member
 
Join Date: Aug 2009
Posts: 66
Rep Power: 0
sysout is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 08-24-2009, 06:51 AM
Fubarable's Avatar
Moderator
 
Join Date: Jun 2008
Posts: 6,431
Rep Power: 8
Fubarable is on a distinguished road
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.
__________________
When posting code, please use code tags so that your code is readable. To do this, place the tag [code] before your block of code and [/code] after your block of code.
How to use Code Tags
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 08-24-2009, 10:31 AM
Member
 
Join Date: Aug 2009
Posts: 66
Rep Power: 0
sysout is on a distinguished road
Default
Not works palz..
seems to be no solutions for this?
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 08-24-2009, 05:48 PM
Senior Member
 
Join Date: Aug 2009
Posts: 1,895
Rep Power: 2
r035198x is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 08-25-2009, 02:20 AM
Member
 
Join Date: Aug 2009
Posts: 66
Rep Power: 0
sysout is on a distinguished road
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 ^^
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 08-25-2009, 09:23 AM
Senior Member
 
Join Date: Aug 2009
Posts: 1,895
Rep Power: 2
r035198x is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 08-26-2009, 03:27 AM
Member
 
Join Date: Aug 2009
Posts: 66
Rep Power: 0
sysout is on a distinguished road
Default
thanks palz, I really appreciate it
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
How to add new row from JTable comp in netbeans GUI? zam NetBeans 3 03-09-2009 08:37 AM
Netbeans Jtable Manfizy NetBeans 16 11-13-2008 10:15 AM
Regarding JTable adeeb AWT / Swing 12 06-19-2008 08:39 AM
Jtable duplicates through Hashtable (JTable condition problem) my assignment plz help salmanpirzada1 Advanced Java 2 05-15-2008 11:15 AM
How to add in a new row in Jtable? Ry4n AWT / Swing 0 01-18-2008 01:26 PM


All times are GMT +2. The time now is 03:08 AM.



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