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

Help with this JButton Save code!

Phil Robinson
Greenhorn

Joined: Nov 09, 2010
Posts: 5
I have been working on this project for over a week, and with this last part, i am almost done! This is the only hard part left, but i just need some help with how to do it! I have to have a JButton, that when pressed, runs a save code that will save 2 different Strings. I know how JButtons work, but the only problem is that we have literally done nothing like this in my java class, so i was wondering if someone could help me out! There is other code involved with setting the ints "milesSum" and "fuelConsumedSum", but i alreayd have that all figured out, so i just need help with figuring out how to save them.

This first part is a JPanel that i have written already



and then this is the "suggested" code that my teacher says we have to adjust to make is save the "milesSum" and the "fuelConsumedSum"


I would really appreciate it if anyone could help me out! Thanks!
pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
Phil Robinson wrote:
and then this is the "suggested" code that my teacher says we have to adjust to make is save the "milesSum" and the "fuelConsumedSum"
....
I would really appreciate it if anyone could help me out! Thanks!


So what modifications have you tried, and what is your code attempt doing?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help with this JButton Save code!
 
Similar Threads
Problem Updating a JButton
divide by 0 exception
Problem with GUI
How adding new row record in table???
using GroupLayout