added a MacOS related comment. See #190

This commit is contained in:
hneemann 2018-09-21 07:31:27 +02:00
parent 32260a6ec9
commit e7d6035b7b

View File

@ -1734,6 +1734,12 @@ public final class Main extends JFrame implements ClosingWindowListener.ConfirmS
public static void main(String[] args) {
Thread.setDefaultUncaughtExceptionHandler(new DigitalUncaughtExceptionHandler());
/*
The Apple look an feel, which can be enabled by choosing the UIManager.getSystemLookAndFeelClassName()
on MacOS has problems with the component tree view because it does not support different item heights.
Also, the HTML rendering does not seem to be supported. See GitHub #190.
Therefore also on MosOS the MetalLookAndFeel is used.
*/
try { // enforce MetalLookAndFeel
UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
} catch (ClassNotFoundException | InstantiationException | UnsupportedLookAndFeelException | IllegalAccessException e) {