• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to save data on jtable so that i can review or edit it later on the frame ?  RSS feed

 
Latif Hemid
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have been working on a small program which mainly included editable jtable. My purpose is to enter data in it and save them. so that later I could open it and review or edit the data on the jtable .
because of being new to Java, I was not able to do the other procedures. Here are my questions:

1. How can I save the entered data on the jatabel?
2. Do I have to save it as a specific file?
3. When I opened the specific file, could I open it like the Jframe that I designed? (I want to open it with the designed Jframe)

I want the steps how to go on it.

Thanks.


111.png
[Thumbnail for 111.png]
Here is image of the program
 
Campbell Ritchie
Sheriff
Posts: 53776
128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't save data in the table. You would have a model, preferably maintained in another class, which saves the data. Read about tables in the Java™ Tutorials.
 
Latif Hemid
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. but I have to operate on that frame to input data.
I mean like Excel
 
Campbell Ritchie
Sheriff
Posts: 53776
128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know about Excel. Try searching for Apache POI.
 
Latif Hemid
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok. thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!