Solved

showSaveDialog file extensions

Posted on 2007-03-24
3
1,105 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
What is JNDI datasource in spring 1 50
firstChar challenge 13 106
simple java question 3 44
Error trying to install RTMT Win7 5 38
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

914 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

12 Experts available now in Live!

Get 1:1 Help Now