File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable Problem

 
Krater Mitch
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am so frustrated with my project, it is due in a few days and I have only one last goal to achieve and I cannot do it because I'm not a great programmer.
So I created a cardlayout with Netbeans GUI builder and the fourth card has a JTable, I populated the jTable with the builder as well, by right clicking going to table contents and modifying them. The problem is that, i want only one of the columns to be editable (achieved it) and it should save the edited cells after the program is closed/or through a save button (CANNOT ACHIEVE THIS ). I have spent a lot of time on this and I am still failing. This is my code, please help me on how to fix this and yes i know the gui builder isnt the best way to learn but i had time constraints.


CODE:








 
Darryl Burke
Bartender
Posts: 5115
11
Java Netbeans IDE Opera
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Camick's Table Stop Editing may be useful.
 
Krater Mitch
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Darryl Burke wrote:Rob Camick's Table Stop Editing may be useful.


um that is not what i meant, i meant the data just has to be updated the next time the user runs the application. (meaning they do hit the enter key). its just that in my case it dosent show the changes the next time i open the app
 
Rob Camick
Ranch Hand
Posts: 2475
8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see any "Save" code where you attempt to save the data so it can be restored the next time you start the application.

So I guess that would be your problem.
 
Krater Mitch
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Camick wrote:I don't see any "Save" code where you attempt to save the data so it can be restored the next time you start the application.

So I guess that would be your problem.


how would i go around to fix this??
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic