Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JFilechooser appearance

In my swing application, I have set the UI Look and Feel as:

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

And it works well on Windows. Inside, the application, the user has to select files using the JFileChooser. The JFileChooser appearance on windows is again the native one. But not on Mac. The screenshot of the JFileChooser Panel:

enter image description here

But instead, I prefer something like this: (This one is taken from upload option in gmail)

enter image description here

What should I change the UIManager to or anything else??

like image 948
Jatin Avatar asked Sep 11 '25 10:09

Jatin


1 Answers

Several alternatives include these:

  • java.awt.FileDialog, illustrated here.

FileDialog

  • A custom ChooserUI, shown here.

ChooserUI

  • A completely custom implementation; several variations are shown here.

image

like image 92
trashgod Avatar answered Sep 12 '25 23:09

trashgod