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) {
|
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();
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue