diff -r 22fbbcbcab1d -r ffcc849b9351 jdk/src/share/classes/javax/swing/plaf/synth/SynthComboBoxUI.java --- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthComboBoxUI.java Tue Jan 26 15:42:06 2010 +0900 +++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthComboBoxUI.java Thu Jan 28 17:06:54 2010 +0300 @@ -305,7 +305,16 @@ // begin ComponentUI Implementation /** - * @inheritDoc + * Notifies this UI delegate to repaint the specified component. + * This method paints the component background, then calls + * the {@link #paint(SynthContext,Graphics)} method. + * + *
In general, this method does not need to be overridden by subclasses. + * All Look and Feel rendering code should reside in the {@code paint} method. + * + * @param g the {@code Graphics} object used for painting + * @param c the component being painted + * @see #paint(SynthContext,Graphics) */ @Override public void update(Graphics g, JComponent c) { @@ -319,7 +328,13 @@ } /** - * @inheritDoc + * Paints the specified component according to the Look and Feel. + *
This method is not used by Synth Look and Feel. + * Painting is handled by the {@link #paint(SynthContext,Graphics)} method. + * + * @param g the {@code Graphics} object used for painting + * @param c the component being painted + * @see #paint(SynthContext,Graphics) */ @Override public void paint(Graphics g, JComponent c) { @@ -333,7 +348,8 @@ * Paints the specified component. * * @param context context for the component being painted - * @param g {@code Graphics} object used for painting + * @param g the {@code Graphics} object used for painting + * @see #update(Graphics,JComponent) */ protected void paint(SynthContext context, Graphics g) { hasFocus = comboBox.hasFocus();