Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2007

Tip: Looking for answers? Try searching our database.

[Java Swing] how to customize "All Files" to other items

Thread view: 
Happy Day - 18 Aug 2007 03:32 GMT
Hi,
I need to customize a JFileChooser a bit.
When I used "showSaveDialog", I need to customize "All Files" to
others such as ".jpg, .png..." in "Files of Type".
But it looks like always showing "All Files".
How can I change it?
Please give me an advice and show me a sample code if you have.

Thank you in advance.
Andrew Thompson - 18 Aug 2007 03:44 GMT
...
>I need to customize a JFileChooser a bit.

Did you try RTFM, even a little bit?

>When I used "showSaveDialog", I need to customize "All Files" to
>others such as ".jpg, .png..." in "Files of Type".
>But it looks like always showing "All Files".
>How can I change it?

Try RTFM.
<http://java.sun.com/javase/6/docs/api/javax/swing/JFileChooser.html>
Even the class *preamble* indicates how to do it.

>Please give me an advice and show me a sample code if you have.

Please do some research or hire a consultant/tutor.
This is not a help desk, and your Google is just as
close as mine.

Signature

Andrew Thompson
http://www.athompson.info/andrew/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.