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
Printable View
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
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.
Not works palz..
seems to be no solutions for this?
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.
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 ^^
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.
thanks palz, I really appreciate it