Solved

showSaveDialog file extensions

Posted on 2007-03-24
3
1,139 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:Vel Eous
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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:Vel Eous
ID: 18784841
Cheers dude.

Life save !!
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 18784843
:-)
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This video teaches viewers about errors in exception handling.
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.

696 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