mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-08 15:00:54 +03:00
fix #60 just use getDeclaredConstructor()
This commit is contained in:
@@ -194,7 +194,7 @@ public abstract class FlatLaf
|
|||||||
// use Mac Aqua LaF as base
|
// use Mac Aqua LaF as base
|
||||||
String aquaLafClassName = "com.apple.laf.AquaLookAndFeel";
|
String aquaLafClassName = "com.apple.laf.AquaLookAndFeel";
|
||||||
try {
|
try {
|
||||||
base = (BasicLookAndFeel) Class.forName( aquaLafClassName ).getDeclaredConstructors()[0].newInstance();
|
base = (BasicLookAndFeel) Class.forName( aquaLafClassName ).getDeclaredConstructor().newInstance();
|
||||||
} catch( Exception ex ) {
|
} catch( Exception ex ) {
|
||||||
LOG.log( Level.SEVERE, "FlatLaf: Failed to initialize base look and feel '" + aquaLafClassName + "'.", ex );
|
LOG.log( Level.SEVERE, "FlatLaf: Failed to initialize base look and feel '" + aquaLafClassName + "'.", ex );
|
||||||
throw new IllegalStateException();
|
throw new IllegalStateException();
|
||||||
|
|||||||
Reference in New Issue
Block a user