Use platform-independent LaF for portable deployment
This commit is contained in:
parent
41fc742d0b
commit
8e4d77bb24
|
@ -170,7 +170,7 @@ public class Main {
|
|||
|
||||
private static void startUserInterface(ArgumentBean args) {
|
||||
// use native LaF an all platforms (use platform-independent laf for standalone jar deployment)
|
||||
if (isExecutableJar()) {
|
||||
if (isPortableApp()) {
|
||||
setNimbusLookAndFeel();
|
||||
} else {
|
||||
setSystemLookAndFeel();
|
||||
|
|
|
@ -74,8 +74,8 @@ public final class Settings {
|
|||
return System.getProperty("application.deployment", "jar");
|
||||
}
|
||||
|
||||
public static boolean isExecutableJar() {
|
||||
return isApplicationDeployment("jar");
|
||||
public static boolean isPortableApp() {
|
||||
return isApplicationDeployment("portable", "jar");
|
||||
}
|
||||
|
||||
public static boolean isAppStore() {
|
||||
|
|
Loading…
Reference in New Issue