aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes How to program with  File Dialog Box. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "How to program with  File Dialog Box." Watch "How to program with  File Dialog Box." New topic
Author

How to program with File Dialog Box.

Prasad Ballari
Ranch Hand

Joined: Sep 23, 2000
Posts: 149
hi,
Can anybody help me out?. I am writing one Notepad application, there i require OS's SAVE dialog box.Now i am getting the Save Dialog box. But How to save a String that is Where the user types (Like NotePad) to a file. and similarly how get a file and show it in to the TextArea object.
The code is like this.
[here sn is the frame(defined earlier).]
FileDialog fldSave=new FileDialog(sn,"Simple Save DialogBox",FileDialog.SAVE);
fldSave.setVisible(true);

Regards
Prasad

------------------
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
I am moving this discussion to Java in General(intermediate)
Ajith


Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to program with File Dialog Box.
 
Similar Threads
FileDialog playing hide and seek
How to program with File Dialog Box.
disposing SAVE file dialog its urgent
Accessing File Dialog Box
Handling menu events