Thanx but this dosent really work.
Do I need to do anything else other than set this property. Here is
what I did.
public class MyFileChooser extends JFileChooser
{
public MyFileChooser()
{
super();
//Added this line
UIManager.put("FileChooser.readOnly", Boolean.TRUE);
}
...
...
}
I am using the object of MyFileChooser to display the component.
Hi,
You probably should do this before instanciating the JFileChooser :
UIManager.put("FileChooser.readOnly", Boolean.TRUE);
JFileChooser MyFileChooser chooser=new JFileChooser();
Regards,
Arnaud
> Thanx but this dosent really work.
> Do I need to do anything else other than set this property. Here is
[quoted text clipped - 13 lines]
>
> I am using the object of MyFileChooser to display the component.
Arnaud Berger - 19 Apr 2005 14:32 GMT
Sorry, read :
UIManager.put("FileChooser.readOnly", Boolean.TRUE);
JFileChooser chooser=new JFileChooser();
> Hi,
>
[quoted text clipped - 24 lines]
> >
> > I am using the object of MyFileChooser to display the component.
Andrey Kuznetsov - 19 Apr 2005 23:29 GMT
> UIManager.put("FileChooser.readOnly", Boolean.TRUE);
> JFileChooser chooser=new JFileChooser();
Is it a wrong design?
This has nothing to do with particular UI implementation.
This should be just simple property of JFileChooser (e.g.
setReadOnly(boolean b))

Signature
Andrey Kuznetsov
http://uio.imagero.com Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities