aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JTable Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable Problem" Watch "JTable Problem" New topic
Author

JTable Problem

Krater Mitch
Greenhorn

Joined: May 26, 2011
Posts: 3
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

Joined: May 03, 2008
Posts: 4664
    
    5

Rob Camick's Table Stop Editing may be useful.


luck, db
There are no new questions, but there may be new answers.
Krater Mitch
Greenhorn

Joined: May 26, 2011
Posts: 3
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

Joined: Jun 13, 2009
Posts: 2227
    
    8
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

Joined: May 26, 2011
Posts: 3
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
 
subject: JTable Problem