simulate look in comboBox in JFileChooser
Hi guys;
I tried playing with JFileChooser : i removed all components of JFileChooser except the "look in "comboBox.
but when trying to get the selected drive from this combo : i don't know how to trigger events for this look in combobox in JFileChooser.
can we do that ?
if not .is it possible to simulate the "look in" comboBox of JFileChooser by writing from sratch ?
i would appreciate your help.
thanks.
> Searching through the source code I found this which
> I think is more what you are looking for:
> File[] baseFolders =
> (File[])sun.awt.shell.ShellFolder.get("fileChooserComb
> oBoxFolders");
very interesting piece of code :I will give that a try.
I appreciate a lot your replies.thanks much
> Searching through the source code I found this which
> I think is more what you are looking for:
> File[] baseFolders =
> (File[])sun.awt.shell.ShellFolder.get("fileChooserComb
> oBoxFolders");
I tried the code but unfortunately it doesn't work on Linux .
it's giving me only / (root directory).
is there a way to list all mounted partitions on Linux box ? (i'm looking for the easiest solution)
thanks much.