Results 1 to 16 of 16
Thread: Save option
- 11-01-2010, 06:43 PM #1
Senior Member
- Join Date
- Oct 2010
- Posts
- 139
- Rep Power
- 0
- 11-01-2010, 06:49 PM #2
- 11-01-2010, 06:51 PM #3
Senior Member
- Join Date
- Oct 2010
- Posts
- 139
- Rep Power
- 0
I haven't tried anything yet, because I know nothing about saving...What do you think?
- 11-01-2010, 06:57 PM #4
- 11-01-2010, 07:04 PM #5
Senior Member
- Join Date
- Oct 2010
- Posts
- 139
- Rep Power
- 0
Thanx but that will take long and I do not have that much time as the program is due tomorrow. It is not a must to have a save option but I really want to put it in. Is there not code that you can give me please??
- 11-01-2010, 07:15 PM #6
Senior Member
- Join Date
- Feb 2010
- Location
- Ljubljana, Slovenia
- Posts
- 470
- Rep Power
- 4
Begging for code won't get you far. Show us your attempt, and ask a specific question (or questions), this isn't rent a coder :D.
Ever seen a dog chase its tail? Now that's an infinite loop.
- 11-01-2010, 08:01 PM #7
Senior Member
- Join Date
- Oct 2010
- Posts
- 139
- Rep Power
- 0
HAHAHA I am open for learning but I don't have any information on how to do this, not even in the textbook that we got at school! So this is why I came here: To get information on the subject. I want to know if it is even possible to have a save option in a JOptionPae Dialog, in other words I want to know if you can save the text on the Dialog, before I just jump in it and not get anything right. I am merely doing research...:)
- 11-01-2010, 08:14 PM #8
Member
- Join Date
- Sep 2010
- Location
- Oregon, usa
- Posts
- 69
- Rep Power
- 0
Checkout KevinWorkman's link from above and this one:
JOptionPane (Java Platform SE 6):cool: It's all here: http://download.oracle.com/javase/6/docs/api/
- 11-01-2010, 08:28 PM #9
Senior Member
- Join Date
- Oct 2010
- Posts
- 139
- Rep Power
- 0
- 11-02-2010, 09:28 AM #10
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
You can stick whatever buttons you want on a JOptionPane.
It's what you do with the users choice that you'll have to code.
So yes, you can have a button called "Save", but to actually save whatever it is you want to save to a file (or wherever) is something you'll have to code.
- 11-02-2010, 04:24 PM #11
Senior Member
- Join Date
- Oct 2010
- Posts
- 139
- Rep Power
- 0
- 11-02-2010, 04:30 PM #12
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
There's already a link above to the Basic IO tutorial, so that's a good place to start.
As for form, well the format of the save file is entirely up to you. You haven't actually said anything about what you want to save, you know.
- 11-03-2010, 04:31 PM #13
Senior Member
- Join Date
- Oct 2010
- Posts
- 139
- Rep Power
- 0
I attached my main program...Under the Bereklone button is where the information comes together that I want to save. It is not completely finished. The program is a sort of a calculator so its numbers that I want to save...Any advice?? Oh no sorry I didn't put it in...How do I put code in?
Last edited by Johanis; 11-03-2010 at 04:34 PM.
- 11-03-2010, 04:41 PM #14
If you want to provide code, you should post it as an SSCCE using the code tags and ask a specific question.
- 11-03-2010, 06:37 PM #15
Senior Member
- Join Date
- Oct 2010
- Posts
- 139
- Rep Power
- 0
- 11-03-2010, 10:51 PM #16
Member
- Join Date
- Sep 2010
- Location
- Oregon, usa
- Posts
- 69
- Rep Power
- 0
You can find some helpful links on Fubarable 's AboutMe page:
Java Forums - View Profile: Fubarable:cool: It's all here: http://download.oracle.com/javase/6/docs/api/
Similar Threads
-
How can i save the data Internally(auto save)
By Rama Koti Reddy in forum AWT / SwingReplies: 2Last Post: 11-01-2010, 08:31 PM -
JAX-WS\METRO - apt with option option key="r"
By Talkinjive in forum Web FrameworksReplies: 0Last Post: 01-31-2010, 04:15 PM -
How to enable save as option in menu after the application has been launched
By plenitude in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 12-26-2008, 09:31 AM -
CVS with -f option
By amiga23 in forum EclipseReplies: 2Last Post: 09-22-2008, 02:57 AM -
Is JSP the right option?
By Naga in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 08-20-2008, 06:48 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks