mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-13 23:37:13 -06:00
Native window decorations: fixed UnsatisfiedLinkError on Windows 11 for ARM processors (issue #443)
This commit is contained in:
@@ -92,6 +92,8 @@ FlatLaf Change Log
|
|||||||
|
|
||||||
#### Fixed bugs
|
#### Fixed bugs
|
||||||
|
|
||||||
|
- Native window decorations: Fixed `UnsatisfiedLinkError` on Windows 11 for ARM
|
||||||
|
processors. (issue #443)
|
||||||
- MenuBar: Do not fill background if non-opaque and having custom background
|
- MenuBar: Do not fill background if non-opaque and having custom background
|
||||||
color. (issue #409)
|
color. (issue #409)
|
||||||
- InternalFrame: Fill background to avoid that parent may shine through internal
|
- InternalFrame: Fill background to avoid that parent may shine through internal
|
||||||
|
|||||||
@@ -90,6 +90,10 @@ class FlatWindowsNativeWindowBorder
|
|||||||
if( !SystemInfo.isWindows_10_orLater )
|
if( !SystemInfo.isWindows_10_orLater )
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
// requires x86 architecture
|
||||||
|
if( !SystemInfo.isX86 && !SystemInfo.isX86_64 )
|
||||||
|
return null;
|
||||||
|
|
||||||
// load native library
|
// load native library
|
||||||
if( nativeLibrary == null ) {
|
if( nativeLibrary == null ) {
|
||||||
if( !SystemInfo.isJava_9_orLater ) {
|
if( !SystemInfo.isJava_9_orLater ) {
|
||||||
|
|||||||
@@ -39,7 +39,9 @@ public class SystemInfo
|
|||||||
public static final boolean isMacOS_10_15_Catalina_orLater;
|
public static final boolean isMacOS_10_15_Catalina_orLater;
|
||||||
|
|
||||||
// OS architecture
|
// OS architecture
|
||||||
|
/** @since 2 */ public static final boolean isX86;
|
||||||
/** @since 1.1 */ public static final boolean isX86_64;
|
/** @since 1.1 */ public static final boolean isX86_64;
|
||||||
|
/** @since 2 */ public static final boolean isAARCH64;
|
||||||
|
|
||||||
// Java versions
|
// Java versions
|
||||||
public static final long javaVersion;
|
public static final long javaVersion;
|
||||||
@@ -76,7 +78,9 @@ public class SystemInfo
|
|||||||
|
|
||||||
// OS architecture
|
// OS architecture
|
||||||
String osArch = System.getProperty( "os.arch" );
|
String osArch = System.getProperty( "os.arch" );
|
||||||
|
isX86 = osArch.equals( "x86" );
|
||||||
isX86_64 = osArch.equals( "amd64" ) || osArch.equals( "x86_64" );
|
isX86_64 = osArch.equals( "amd64" ) || osArch.equals( "x86_64" );
|
||||||
|
isAARCH64 = osArch.equals( "aarch64" );
|
||||||
|
|
||||||
// Java versions
|
// Java versions
|
||||||
javaVersion = scanVersion( System.getProperty( "java.version" ) );
|
javaVersion = scanVersion( System.getProperty( "java.version" ) );
|
||||||
|
|||||||
Reference in New Issue
Block a user