Java Code Examples for javax.swing.LookAndFeel#getDefaults()
The following examples show how to use
javax.swing.LookAndFeel#getDefaults() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SeaGlassLookAndFeel.java From seaglass with Apache License 2.0 | 6 votes |
/** * Use Aqua settings for some properties if we're on a Mac. * * @param d the UI defaults map. */ private void defineAquaSettings(UIDefaults d) { try { // Instantiate Aqua but don't install it. Class<?> lnfClass = Class.forName(UIManager.getSystemLookAndFeelClassName(), true, Thread.currentThread().getContextClassLoader()); LookAndFeel aqua = (LookAndFeel) lnfClass.newInstance(); UIDefaults aquaDefaults = aqua.getDefaults(); // Use Aqua for any menu UI classes. d.put("MenuBarUI", aquaDefaults.get("MenuBarUI")); d.put("MenuUI", aquaDefaults.get("MenuUI")); } catch (Exception e) { // TODO Should we do something with this exception? e.printStackTrace(); } }
Example 2
Source File: XToolkit.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
static void initUIDefaults() { try { // Load Defaults from MotifLookAndFeel // This dummy load is necessary to get SystemColor initialized. !!!!!! Color c = SystemColor.text; LookAndFeel lnf = new XAWTLookAndFeel(); uidefaults = lnf.getDefaults(); } catch (Exception e) { e.printStackTrace(); } }
Example 3
Source File: XToolkit.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
static void initUIDefaults() { try { // Load Defaults from MotifLookAndFeel // This dummy load is necessary to get SystemColor initialized. !!!!!! Color c = SystemColor.text; LookAndFeel lnf = new XAWTLookAndFeel(); uidefaults = lnf.getDefaults(); } catch (Exception e) { e.printStackTrace(); } }
Example 4
Source File: XToolkit.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
static void initUIDefaults() { try { // Load Defaults from MotifLookAndFeel // This dummy load is necessary to get SystemColor initialized. !!!!!! Color c = SystemColor.text; LookAndFeel lnf = new XAWTLookAndFeel(); uidefaults = lnf.getDefaults(); } catch (Exception e) { e.printStackTrace(); } }
Example 5
Source File: XToolkit.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
static void initUIDefaults() { try { // Load Defaults from MotifLookAndFeel // This dummy load is necessary to get SystemColor initialized. !!!!!! Color c = SystemColor.text; LookAndFeel lnf = new XAWTLookAndFeel(); uidefaults = lnf.getDefaults(); } catch (Exception e) { e.printStackTrace(); } }
Example 6
Source File: XToolkit.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
static void initUIDefaults() { try { // Load Defaults from MotifLookAndFeel // This dummy load is necessary to get SystemColor initialized. !!!!!! Color c = SystemColor.text; LookAndFeel lnf = new XAWTLookAndFeel(); uidefaults = lnf.getDefaults(); } catch (Exception e) { e.printStackTrace(); } }
Example 7
Source File: XToolkit.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
static void initUIDefaults() { try { // Load Defaults from MotifLookAndFeel // This dummy load is necessary to get SystemColor initialized. !!!!!! Color c = SystemColor.text; LookAndFeel lnf = new XAWTLookAndFeel(); uidefaults = lnf.getDefaults(); } catch (Exception e) { e.printStackTrace(); } }
Example 8
Source File: XToolkit.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
static void initUIDefaults() { try { // Load Defaults from MotifLookAndFeel // This dummy load is necessary to get SystemColor initialized. !!!!!! Color c = SystemColor.text; LookAndFeel lnf = new XAWTLookAndFeel(); uidefaults = lnf.getDefaults(); } catch (Exception e) { e.printStackTrace(); } }
Example 9
Source File: XToolkit.java From hottub with GNU General Public License v2.0 | 5 votes |
static void initUIDefaults() { try { // Load Defaults from MotifLookAndFeel // This dummy load is necessary to get SystemColor initialized. !!!!!! Color c = SystemColor.text; LookAndFeel lnf = new XAWTLookAndFeel(); uidefaults = lnf.getDefaults(); } catch (Exception e) { e.printStackTrace(); } }
Example 10
Source File: XToolkit.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
static void initUIDefaults() { try { // Load Defaults from MotifLookAndFeel // This dummy load is necessary to get SystemColor initialized. !!!!!! Color c = SystemColor.text; LookAndFeel lnf = new XAWTLookAndFeel(); uidefaults = lnf.getDefaults(); } catch (Exception e) { e.printStackTrace(); } }
Example 11
Source File: XToolkit.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
static void initUIDefaults() { try { // Load Defaults from MotifLookAndFeel // This dummy load is necessary to get SystemColor initialized. !!!!!! Color c = SystemColor.text; LookAndFeel lnf = new XAWTLookAndFeel(); uidefaults = lnf.getDefaults(); } catch (Exception e) { e.printStackTrace(); } }
Example 12
Source File: XToolkit.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
static void initUIDefaults() { try { // Load Defaults from MotifLookAndFeel // This dummy load is necessary to get SystemColor initialized. !!!!!! Color c = SystemColor.text; LookAndFeel lnf = new XAWTLookAndFeel(); uidefaults = lnf.getDefaults(); } catch (Exception e) { e.printStackTrace(); } }
Example 13
Source File: XToolkit.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
static void initUIDefaults() { try { // Load Defaults from MotifLookAndFeel // This dummy load is necessary to get SystemColor initialized. !!!!!! Color c = SystemColor.text; LookAndFeel lnf = new XAWTLookAndFeel(); uidefaults = lnf.getDefaults(); } catch (Exception e) { e.printStackTrace(); } }
Example 14
Source File: XToolkit.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
static void initUIDefaults() { try { // Load Defaults from MotifLookAndFeel // This dummy load is necessary to get SystemColor initialized. !!!!!! Color c = SystemColor.text; LookAndFeel lnf = new XAWTLookAndFeel(); uidefaults = lnf.getDefaults(); } catch (Exception e) { e.printStackTrace(); } }
Example 15
Source File: UIDefaultsDump.java From FlatLaf with Apache License 2.0 | 4 votes |
private UIDefaultsDump( LookAndFeel lookAndFeel ) { this.lookAndFeel = lookAndFeel; this.defaults = lookAndFeel.getDefaults(); }