Java Code Examples for sun.swing.SwingUtilities2#getUIDefaultsInt()
The following examples show how to use
sun.swing.SwingUtilities2#getUIDefaultsInt() .
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: bug8080628.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
private static void runTest() { try { LookAndFeelInfo[] lafInfo = UIManager.getInstalledLookAndFeels(); for (LookAndFeelInfo info : lafInfo) { UIManager.setLookAndFeel(info.getClassName()); for (Locale locale : LOCALES) { for (String key : MNEMONIC_KEYS) { int mnemonic = SwingUtilities2.getUIDefaultsInt(key, locale); if (mnemonic != 0) { throw new RuntimeException("No mnemonic expected (" + mnemonic + ") " + "for '" + key + "' " + "in locale '" + locale + "' " + "in Look-and-Feel '" + UIManager.getLookAndFeel().getClass().getName() + "'"); } } } } System.out.println("Test passed"); } catch (Exception e) { exception = e; } }
Example 2
Source File: bug8080628.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
private static void runTest() { try { LookAndFeelInfo[] lafInfo = UIManager.getInstalledLookAndFeels(); for (LookAndFeelInfo info : lafInfo) { UIManager.setLookAndFeel(info.getClassName()); for (Locale locale : LOCALES) { for (String key : MNEMONIC_KEYS) { int mnemonic = SwingUtilities2.getUIDefaultsInt(key, locale); if (mnemonic != 0) { throw new RuntimeException("No mnemonic expected (" + mnemonic + ") " + "for '" + key + "' " + "in locale '" + locale + "' " + "in Look-and-Feel '" + UIManager.getLookAndFeel().getClass().getName() + "'"); } } } } System.out.println("Test passed"); } catch (Exception e) { exception = e; } }
Example 3
Source File: Test6524757.java From hottub with GNU General Public License v2.0 | 5 votes |
private static Object convert(Locale locale, String key) { if (key.endsWith("Text")) { // NON-NLS: suffix for text message return UIManager.getString(key, locale); } if (key.endsWith("Size")) { // NON-NLS: suffix for dimension return UIManager.getDimension(key, locale); } if (key.endsWith("Color")) { // NON-NLS: suffix for color return UIManager.getColor(key, locale); } int value = SwingUtilities2.getUIDefaultsInt(key, locale, -1); return Integer.valueOf(value); }
Example 4
Source File: Test6524757.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private static Object convert(Locale locale, String key) { if (key.endsWith("Text")) { // NON-NLS: suffix for text message return UIManager.getString(key, locale); } if (key.endsWith("Size")) { // NON-NLS: suffix for dimension return UIManager.getDimension(key, locale); } if (key.endsWith("Color")) { // NON-NLS: suffix for color return UIManager.getColor(key, locale); } int value = SwingUtilities2.getUIDefaultsInt(key, locale, -1); return Integer.valueOf(value); }
Example 5
Source File: Test6524757.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private static Object convert(Locale locale, String key) { if (key.endsWith("Text")) { // NON-NLS: suffix for text message return UIManager.getString(key, locale); } if (key.endsWith("Size")) { // NON-NLS: suffix for dimension return UIManager.getDimension(key, locale); } if (key.endsWith("Color")) { // NON-NLS: suffix for color return UIManager.getColor(key, locale); } int value = SwingUtilities2.getUIDefaultsInt(key, locale, -1); return Integer.valueOf(value); }
Example 6
Source File: Test6524757.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private static Object convert(Locale locale, String key) { if (key.endsWith("Text")) { // NON-NLS: suffix for text message return UIManager.getString(key, locale); } if (key.endsWith("Size")) { // NON-NLS: suffix for dimension return UIManager.getDimension(key, locale); } if (key.endsWith("Color")) { // NON-NLS: suffix for color return UIManager.getColor(key, locale); } int value = SwingUtilities2.getUIDefaultsInt(key, locale, -1); return Integer.valueOf(value); }
Example 7
Source File: MotifFileChooserUI.java From JDKSourceCode1.8 with MIT License | 4 votes |
private Integer getMnemonic(String key, Locale l) { return SwingUtilities2.getUIDefaultsInt(key, l); }
Example 8
Source File: BasicFileChooserUI.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
/** * Returns the mnemonic for the given key. */ private int getMnemonic(String key, Locale l) { return SwingUtilities2.getUIDefaultsInt(key, l); }
Example 9
Source File: MotifFileChooserUI.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private Integer getMnemonic(String key, Locale l) { return SwingUtilities2.getUIDefaultsInt(key, l); }
Example 10
Source File: GTKFileChooserUI.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private int getMnemonic(String key, Locale l) { return SwingUtilities2.getUIDefaultsInt(key, l); }
Example 11
Source File: BasicFileChooserUI.java From JDKSourceCode1.8 with MIT License | 4 votes |
/** * Returns the mnemonic for the given key. */ private int getMnemonic(String key, Locale l) { return SwingUtilities2.getUIDefaultsInt(key, l); }
Example 12
Source File: GTKFileChooserUI.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
private int getMnemonic(String key, Locale l) { return SwingUtilities2.getUIDefaultsInt(key, l); }
Example 13
Source File: BasicFileChooserUI.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
/** * Returns the mnemonic for the given key. */ private int getMnemonic(String key, Locale l) { return SwingUtilities2.getUIDefaultsInt(key, l); }
Example 14
Source File: MotifFileChooserUI.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private Integer getMnemonic(String key, Locale l) { return SwingUtilities2.getUIDefaultsInt(key, l); }
Example 15
Source File: MotifFileChooserUI.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
private Integer getMnemonic(String key, Locale l) { return SwingUtilities2.getUIDefaultsInt(key, l); }
Example 16
Source File: GTKFileChooserUI.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
private int getMnemonic(String key, Locale l) { return SwingUtilities2.getUIDefaultsInt(key, l); }
Example 17
Source File: BasicFileChooserUI.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
/** * Returns the mnemonic for the given key. */ private int getMnemonic(String key, Locale l) { return SwingUtilities2.getUIDefaultsInt(key, l); }
Example 18
Source File: BasicFileChooserUI.java From Bytecoder with Apache License 2.0 | 4 votes |
/** * Returns the mnemonic for the given key. */ private int getMnemonic(String key, Locale l) { return SwingUtilities2.getUIDefaultsInt(key, l); }
Example 19
Source File: MotifFileChooserUI.java From Bytecoder with Apache License 2.0 | 4 votes |
private Integer getMnemonic(String key, Locale l) { return SwingUtilities2.getUIDefaultsInt(key, l); }
Example 20
Source File: MotifFileChooserUI.java From jdk1.8-source-analysis with Apache License 2.0 | 4 votes |
private Integer getMnemonic(String key, Locale l) { return SwingUtilities2.getUIDefaultsInt(key, l); }