mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-18 09:24:42 -04:00
added a MacOS related comment. See #190
This commit is contained in:
parent
32260a6ec9
commit
e7d6035b7b
@ -1734,6 +1734,12 @@ public final class Main extends JFrame implements ClosingWindowListener.ConfirmS
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
Thread.setDefaultUncaughtExceptionHandler(new DigitalUncaughtExceptionHandler());
|
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
|
try { // enforce MetalLookAndFeel
|
||||||
UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
|
UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
|
||||||
} catch (ClassNotFoundException | InstantiationException | UnsupportedLookAndFeelException | IllegalAccessException e) {
|
} catch (ClassNotFoundException | InstantiationException | UnsupportedLookAndFeelException | IllegalAccessException e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user