Java Code Examples for javax.swing.UIManager.LookAndFeelInfo#getName()
The following examples show how to use
javax.swing.UIManager.LookAndFeelInfo#getName() .
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: UnninstallUIMemoryLeaks.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public static void main(final String[] args) throws Exception { try { createGUI(); for (final LookAndFeelInfo laf : getInstalledLookAndFeels()) { final String name = laf.getName(); if (name.contains("OS X") || name.contains("Metal")) { SwingUtilities.invokeAndWait(() -> setLookAndFeel(laf)); SwingUtilities.invokeAndWait(() -> { for (int i = 0; i < 4000; ++i) { SwingUtilities.updateComponentTreeUI(frame); } }); } } } finally { EventQueue.invokeAndWait(() -> frame.dispose()); } }
Example 2
Source File: GanttLookAndFeelInfo.java From ganttproject with GNU General Public License v3.0 | 4 votes |
public GanttLookAndFeelInfo(LookAndFeelInfo info) { this(info.getName(), info.getClassName()); }
Example 3
Source File: GuiMain.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
ChangeLookAndFeelAction(CliGuiContext cliGuiCtx, LookAndFeelInfo lookAndFeelInfo) { super(lookAndFeelInfo.getName()); this.cliGuiCtx = cliGuiCtx; this.lookAndFeelInfo = lookAndFeelInfo; }