From a71564fe2a8635b0054879fc31601fec985683d2 Mon Sep 17 00:00:00 2001 From: codistmonk Date: Wed, 6 Mar 2013 10:41:53 +0000 Subject: [PATCH] [Aprog] Added another method setupSystemLookAndFeel() in AFTools. git-svn-id: https://aprog.svn.sourceforge.net/svnroot/aprog/trunk@211 7cbf5e2b-b55d-4b93-acdd-c0d7b961df51 --- Aprog/src/net/sourceforge/aprog/af/AFTools.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Aprog/src/net/sourceforge/aprog/af/AFTools.java b/Aprog/src/net/sourceforge/aprog/af/AFTools.java index 36a95c4..84e7f89 100644 --- a/Aprog/src/net/sourceforge/aprog/af/AFTools.java +++ b/Aprog/src/net/sourceforge/aprog/af/AFTools.java @@ -80,6 +80,20 @@ public final class AFTools { useSystemLookAndFeel(); } + /** + * Prepares the application to use the OS default look and feel. + *
On Mac OS X, sets up the use of the screen menu bar and the application name. + * + * @param applicationName + *
Maybe null + * @param applicationIconName + *
Maybe null + */ + public static final void setupSystemLookAndFeel(final String applicationName, final String applicationIconPath) { + MacOSXTools.setupUI(applicationName, applicationIconPath); + useSystemLookAndFeel(); + } + public static final void fireUpdate(final Context context, final String variableName) { final Object value = context.get(variableName); final AtomicVariable variable = cast(AtomicVariable.class, context.getVariable(variableName)); -- 2.11.4.GIT