java - Insert JTable data into database -


i facing problem jtable when inserting jtable values database. example have 3 columns, , user enters corresponding data 3 columns, jtable has several rows , have 1 submit button @ bottom of table. after filling data rows, when user press submit button, data inserted database. works fine without problems.

now consider user enters 10 rows , didn't click submit button, because of power failure system shutdown suddenly. want store these 10 rows in collection , when application started again want insert these 10 rows values automatically database. please consider user information critical information. don't know how this.

rightly said @madprogrammer have take of temp tables, add action listener ***jtable***after insertion of row data transfer data temp tables.

-- after click on submit button, there should check if data present in temp tables, first insert these data main table.and truncate or delete data temp tables.

here collection not work you. hope may you.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

methods - python can't use function in submodule -

c# - ErrorThe type or namespace name 'AxWMPLib' could not be found (are you missing a using directive or an assembly reference?) -