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 / GUI / October 2004

Tip: Looking for answers? Try searching our database.

JFileChooser question

Thread view: 
Bill Lawson - 31 Oct 2004 09:56 GMT
I would like to customize the JFileChooser so that when a user opens a file
there is an extra option on the JFileChooser dialog (an extra tickbox).  I
am writing a bit analyser so when the user opens a new file (containing the
bits) there should be an option for "packed bits/unpacked bits", depending
on how the bits are stored in the files.

So, is it possible to extend the JFileChooser class and incorporate this
extra option?  Any help appreciated.
Mark Thornton - 31 Oct 2004 10:11 GMT
> I would like to customize the JFileChooser so that when a user opens a file
> there is an extra option on the JFileChooser dialog (an extra tickbox).  I
[quoted text clipped - 4 lines]
> So, is it possible to extend the JFileChooser class and incorporate this
> extra option?  Any help appreciated.

You don't extend JFileChooser. Instead add your additional options to a
JComponent and use JFileChooser.setAccessory.

Mark Thornton
Bill Lawson - 31 Oct 2004 12:34 GMT
> > I would like to customize the JFileChooser so that when a user opens a file
> > there is an extra option on the JFileChooser dialog (an extra tickbox).  I
[quoted text clipped - 9 lines]
>
> Mark Thornton

Many thanks for that.

Regards,

Bill


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.