anyone found any good looking directory pickers? t...
# compose-desktop
a
anyone found any good looking directory pickers? the default swing one looks really dated
z
a
If you use the AWT one, you get the native look.
e
Selecting directories with the AWT one is quite broken on some platforms.
compose-multiplatform-file-picker
brings lwjql which sounds overkill for that purpose.
👍🏻 1
I keep using the unsatisfying Swing one until something like this PR is available https://github.com/Wavesonics/compose-multiplatform-file-picker/pull/123
👍 1
a
@Alexander Maryanovsky which one are you talking about? cant find a awt directory picker
a
right. figured it out. It is indeed the
FileDialog
but there are no API on the class to ask for directories only. you need to call
Copy code
System.setProperty("apple.awt.fileDialogForDirectories", true)
before displaying the dialog PS: That's on Mac OS
e
And depending on the desktop os you'll have various annoying behaviour when it comes to selecting directories
s
I have used com.darkrockstudios:mpfilepicker in Jewel and it works ok for my very basic needs. YMMV