Use platform-independent LaF for portable deployment

This commit is contained in:
Reinhard Pointner 2017-06-18 14:42:19 +08:00
parent 41fc742d0b
commit 8e4d77bb24
2 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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() {