Solved

showSaveDialog file extensions

Posted on 2007-03-24
3
1,093 Views
Last Modified: 2008-01-09
Hi,

I`m using a pretty bog standard jFileChooser.showSaveDialog() method to save files from the "text editor" I am developing as a project.  What I am looking to add to this jFileChooser.showSaveDialog is certain file extensions in the drop down box.

I've had a look on the iNet & EE but could not come across anything, can someone point me in the right direction please ?
0
Comment
Question by:Tchuki
  • 2
3 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 18784835
You need a FilenameExtensionFilter. Example in API docs:

http://java.sun.com/javase/6/docs/api/javax/swing/JFileChooser.html
0
 
LVL 14

Author Comment

by:Tchuki
ID: 18784841
Cheers dude.

Life save !!
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 18784843
:-)
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now