|
|
@ -667,19 +667,11 @@ public class UIBasicMenuItemUI extends MenuItemUI { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void installFont(final String prefix, final JComponent menuItem) { |
|
|
|
private void installFont(final String prefix, final JComponent menuItem) { |
|
|
|
Thread thread = new Thread(new Runnable() { |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void run() { |
|
|
|
|
|
|
|
if (menuItem == null) { |
|
|
|
if (menuItem == null) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
LookAndFeel.installColorsAndFont(menuItem, prefix + ".background", prefix + ".foreground", prefix + ".font"); |
|
|
|
LookAndFeel.installColorsAndFont(menuItem, prefix + ".background", prefix + ".foreground", prefix + ".font"); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
thread.setName("UIBasicMenuItemUI"); |
|
|
|
|
|
|
|
thread.setDaemon(true); |
|
|
|
|
|
|
|
thread.start(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, |
|
|
|
protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, |
|
|
|
Icon arrowIcon, int defaultTextIconGap) { |
|
|
|
Icon arrowIcon, int defaultTextIconGap) { |
|
|
|