Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

Java jTable auto save / save edited cell HELP PLS...

secretblackjack

Novice
Advanced Member
Messages
25
Reaction score
0
Points
41
hello mga boss, pa help naman po sa Java swing jtable,,pano po mag auto save ng edited cell sa jtable,,, netbeans po gamet ko na ide.
DefaultTableModel po gamit ko na mag fill sa jtable...eto po may caption ako sa code:
yung gusto ko sna mangyari pag mag eedit ako ng cell is automatic mag savave na sya sa database di na mag cliclick sa save na button, workbench gamet ko na database pla.

View attachment 304457

View attachment 304458



sa mga na search sa google gamitan daw ng TableModelListener, pano po yun mga boss, pa help pp pls hehe salmat sa tutulong....
#java #netbeans #jtable
 

Attachments

  • 2017-02-22 16_55_07-Capture.png
    2017-02-22 16_55_07-Capture.png
    4.6 KB · Views: 4
  • 2017-02-22 17_09_49-Capture.png
    2017-02-22 17_09_49-Capture.png
    26.1 KB · Views: 14
Last edited:
See the following links:

How to use Tables

Java swing table examples

Also, saving to database after updates to each cell is not efficient. You should consider saving all changes after the save button is clicked or before the application terminates. All data are stored in a vector of a vector that represents the model of the table so you don't have to keep track of each cell.
 
Last edited:
See the following links:

How to use Tables

Java swing table examples

Also, saving to database after updates to each cell is not efficient. You should consider saving all changes after the save button is clicked or before the application terminates. All data are stored in a vector of a vector that represents the model of the table so you don't have to keep track of each cell.

i see,, oo nga naman po...hehe makes sense now,, medyo na gets ko na sya salamat po sa tulong.. medyo na stuck ako dun kasi sa auto saved ng jtable,yun pala di sya efficient and i think bad behavior yun?hehe


Salamat po ng madami :clap:
 
Back
Top Bottom