}
updateStyle(popupMenu);
}
private void updateStyle(JComponent c) {
SeaGlassContext context = getContext(c, ENABLED);
Window window = SwingUtilities.getWindowAncestor(popupMenu);
if (PlatformUtils.isMac() && window != null) {
WindowUtils.makeWindowNonOpaque(window);
}
SeaGlassStyle oldStyle = style;
style = (SeaGlassStyle) SeaGlassLookAndFeel.updateStyle(context, this);
if (style != oldStyle) {
if (oldStyle != null) {
uninstallKeyboardActions();
installKeyboardActions();
}
}
context.dispose();
}