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) { private static void startUserInterface(ArgumentBean args) {
// use native LaF an all platforms (use platform-independent laf for standalone jar deployment) // use native LaF an all platforms (use platform-independent laf for standalone jar deployment)
if (isExecutableJar()) { if (isPortableApp()) {
setNimbusLookAndFeel(); setNimbusLookAndFeel();
} else { } else {
setSystemLookAndFeel(); setSystemLookAndFeel();

View File

@ -74,8 +74,8 @@ public final class Settings {
return System.getProperty("application.deployment", "jar"); return System.getProperty("application.deployment", "jar");
} }
public static boolean isExecutableJar() { public static boolean isPortableApp() {
return isApplicationDeployment("jar"); return isApplicationDeployment("portable", "jar");
} }
public static boolean isAppStore() { public static boolean isAppStore() {