I have 2 buttons in my form. The first button to fill the JTable from .xls file and the second button to save the content of the table to database (MySql). I haven't figure out yet the way to save data from JTable to MySql. :confused: So, can anybody help me pliz? Thanx before.

Recommended Answers

All 2 Replies

You can check the API to see if there is a way to get the data from the table.

Thx for your reply! :)
Finally, the problem has been solved. Here is the code I used to get data from the table (in case anybody has the same problem..or maybe not.. ^^"):

tableName.getValueAt(row, column).toString()
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.