Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1094
| From | "Dan Andrews" <dan.andrews@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: JFileChooser |
| Message-ID | <esam26$902$1@utornnr1pp.grouptelecom.net> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <1172888066.883410.208790@8g2000cwh.googlegroups.com> |
| Date | 2011-04-27 15:31 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui Andrew Thompson wrote: > On Mar 3, 11:22 am, Hulker69 <x...@xxx.com> wrote: >> On 2 Mar 2007 06:52:48 -0800, urpr...@gmail.com wrote: >> >>> How can i disable the "File Name" TextFeild in JFileChooser? > ... >> Try this >> >> ((JTextComponent)((Container)((Container)((Container)((Container)getCompone!nt(2)).getComponent(2))).getComponent(2)).getComponent(1)).setEnabled(false!); >> > > I was about to comment that was very > fragile code, and ask.. Andrew, this is a very very very good point. Although, you can play the with knowledge of how the plaf was written at a certain point in time it may come back to bite you. Before you know it your code might be stuck in, for example, JDK 1.4 forever. Cheers, Dan Andrews - - - - - - - - - - - - - - - - - - - - - - - - - Ansir Development Limited http://www.ansir.ca - - - - - - - - - - - - - - - - - - - - - - - - - --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar
JFileChooser "urpriya" <urpriya@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
Re: JFileChooser "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
Re: JFileChooser "tar" <tar@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
Re: JFileChooser "Hulker69" <hulker69@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
Re: JFileChooser "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
Re: JFileChooser "Dan Andrews" <dan.andrews@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
Re: JFileChooser a24900@googlemail.com.remove-dii-this - 2011-04-27 15:31 +0000
csiph-web