Java Code Examples for javax.swing.UIManager.LookAndFeelInfo#getClassName()
The following examples show how to use
javax.swing.UIManager.LookAndFeelInfo#getClassName() .
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: DockingWindowsLookAndFeelUtils.java From ghidra with Apache License 2.0 | 6 votes |
private static String findLookAndFeelClassName(String lookAndFeelName) { if (lookAndFeelName.equalsIgnoreCase(SYSTEM_LOOK_AND_FEEL)) { return UIManager.getSystemLookAndFeelClassName(); } LookAndFeelInfo[] installedLookAndFeels = UIManager.getInstalledLookAndFeels(); for (LookAndFeelInfo info : installedLookAndFeels) { String className = info.getClassName(); if (lookAndFeelName.equals(className) || lookAndFeelName.equals(info.getName())) { return className; } } Msg.debug(DockingWindowsLookAndFeelUtils.class, "Unable to find requested Look and Feel: " + lookAndFeelName); return UIManager.getSystemLookAndFeelClassName(); }
Example 2
Source File: WikipediaCleaner.java From wpcleaner with Apache License 2.0 | 5 votes |
/** * @param name Look and Feel name * @return Look and Feel class name */ private static String getLookAndFeelClassName(String name) { if (name == null) { return null; } for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) { if (name.equals(info.getName())) { return info.getClassName(); } } return null; }
Example 3
Source File: Installer.java From wpcleaner with Apache License 2.0 | 5 votes |
/** * @param name Look and Feel name * @return Look and Feel class name */ private static String getLookAndFeelClassName(String name) { if (name == null) { return null; } for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) { if (name.equals(info.getName())) { return info.getClassName(); } } return null; }
Example 4
Source File: GanttLookAndFeelInfo.java From ganttproject with GNU General Public License v3.0 | 4 votes |
public GanttLookAndFeelInfo(LookAndFeelInfo info) { this(info.getName(), info.getClassName()); }