/** * Returns color specific to the current style. This method is invoked when other variants don't * fit. */ private Color getStyleSpecificColor(SynthContext context, int state, ColorType type) { state = GTKLookAndFeel.synthStateToGTKStateType(state).ordinal(); synchronized (sun.awt.UNIXToolkit.GTK_LOCK) { int rgb = nativeGetColorForState(widgetType, state, type.getID()); return new ColorUIResource(rgb); } }