Article View: borland.public.jbuilder.java.api
Article #1665Re: How to make a customized JFilechooser
From: Paul Keeble
Date: Fri, 26 Oct 2001 13:13
Date: Fri, 26 Oct 2001 13:13
42 lines
2683 bytes
2683 bytes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 "Laurent Souriau" <lsouriau@club-internet.fr> wrote in message news:9rbcp2$5cc$1@s1.read.news.oleane.net... > Hi, > > > Here is the problem i would like to solve : > > I want to design my own JFilechooser, by adding some extra > Jbuttons and checkboxes. However i don't know how to do this. > Which layout to use, and how to set my components position > on the JFilechooser. > > any help is welcome > > thank you > > Laurent > email : lsouriau@club-internet.fr > > How about using a JFileChooser and customizing it a bit. You can set the text on the buttons fairly easily, and you could use the setAccessory(JComponent) method to add your checkboxes etc. I'm guessing this may well suit your needs without you having to totally re-layout a file chooser again. (Which probably isn't too bad but think about getting all the drive info etc, its more work than it needs to be!) -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com> iQA/AwUBO9lhalrbLuWZF8kzEQIgWACfWrhKDsYl0wOx4FsVLI+usaLmEJIAoJ00 ysSlXxCatAnZphFaUogXTpxJ =xT0+ -----END PGP SIGNATURE-----
Technical Details
Message-ID:
<SgdC7.2247$o56.361493@news2-win.server.ntlworld.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!diablo.theplanet.net!btnet-peer!btnet-peer0!btnet!news5-gui.server.ntli.net!ntli.net!news2-win.server.ntlworld.com.POSTED!not-for-mailReferences:
<9rbcp2$5cc$1@s1.read.news.oleane.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10a146,67f00e0d4af4a27f X-Google-Attributes: gid10a146,public X-Google-Thread: 1089d0,67f00e0d4af4a27f X-Google-Attributes: gid1089d0,public X-Google-Thread: 113ae9,67f00e0d4af4a27f X-Google-Attributes: gid113ae9,public X-Google-Thread: f74b3,67f00e0d4af4a27f X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-10-26 06:15:17 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!diablo.theplanet.net!btnet-peer!btnet-peer0!btnet!news5-gui.server.ntli.net!ntli.net!news2-win.server.ntlworld.com.POSTED!not-for-mail From: "Paul Keeble" <P.Keeble3@ntlworld.com> Newsgroups: borland.public.jbuilder.java.api,borland.public.jbuilder.java.language,comp.lang.java.help,comp.lang.java.programmer References: <9rbcp2$5cc$1@s1.read.news.oleane.net> Subject: Re: How to make a customized JFilechooser Lines: 45 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Message-ID: <SgdC7.2247$o56.361493@news2-win.server.ntlworld.com> Date: Fri, 26 Oct 2001 14:13:17 +0100 NNTP-Posting-Host: 213.107.33.161 X-Complaints-To: abuse@ntlworld.com X-Trace: news2-win.server.ntlworld.com 1004101810 213.107.33.161 (Fri, 26 Oct 2001 14:10:10 BST) NNTP-Posting-Date: Fri, 26 Oct 2001 14:10:10 BST Organization: ntl Cablemodem News Service