Login  Register

Look and Feel of Directory Chooser under Windows & Linux

Posted by Michael Schmid on Mar 11, 2021; 9:07am
URL: http://imagej.273.s1.nabble.com/Choice-of-file-chooser-in-import-sequence-is-not-respected-tp5024507p5024517.html

Hi everyone,

in continuation of the thread
"Choice of file chooser in import sequence is not respected":

Maybe there is a simple way to get a nicer view of the Directory Chooser
on non-Macintosh operating systems.

The following ImageJ macro could help a bit:
 
eval("js","javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());");

For some flavors of Linux, I fear that this will not be an improvement.
Also note that other javax.swing windows will change their appearance as
well, e.g. the Command Finder (<ctrl>-L).


Thus, I would be interested to get feedback (especially Linux & Windows
users) whether this should be done in ImageJ by default?

To test it, run the macro and then File>Import Image Sequence, and press
the 'Browse' button to get a Directory Chooser (needs at least ImageJ
1.53d).
Also please have a look at Plugins>Utilities>Find Commands and the
'Help' of Edit>Options>Point Tool, whether you like their new appearance.
Users of Jerome Mutterer's Action Panels will also see a changed appearance.

My impression is that the "System Look and Feel" is not a real
improvement under Ubuntu Linux. On other operating systems it may be
different (e.g. on MacOS, where the Directory Chooser is not affected, I
would prefer the SystemLookAndFeel for the Command Finder).

What is your preference?

Michael

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html