< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/metal/MetalToggleButtonUI.java

Print this page

        

*** 48,58 **** * Serialized objects of this class will not be compatible with * future Swing releases. The current serialization support is * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans&trade; ! * has been added to the <code>java.beans</code> package. * Please see {@link java.beans.XMLEncoder}. * * @author Tom Santos */ @SuppressWarnings("serial") // Same-version serialization only --- 48,58 ---- * Serialized objects of this class will not be compatible with * future Swing releases. The current serialization support is * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans&trade; ! * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @author Tom Santos */ @SuppressWarnings("serial") // Same-version serialization only
*** 150,164 **** // ******************************** // Paint Methods // ******************************** /** * If necessary paints the background of the component, then invokes ! * <code>paint</code>. * * @param g Graphics to paint to * @param c JComponent painting on ! * @throws NullPointerException if <code>g</code> or <code>c</code> is * null * @see javax.swing.plaf.ComponentUI#update * @see javax.swing.plaf.ComponentUI#paint * @since 1.5 */ --- 150,164 ---- // ******************************** // Paint Methods // ******************************** /** * If necessary paints the background of the component, then invokes ! * {@code paint}. * * @param g Graphics to paint to * @param c JComponent painting on ! * @throws NullPointerException if {@code g} or {@code c} is * null * @see javax.swing.plaf.ComponentUI#update * @see javax.swing.plaf.ComponentUI#paint * @since 1.5 */
*** 242,253 **** focusRect.width+1, focusRect.height+1); } /** ! * Paints the appropriate icon of the button <code>b</code> in the ! * space <code>iconRect</code>. * * @param g Graphics to paint to * @param b Button to render for * @param iconRect space to render in * @throws NullPointerException if any of the arguments are null. --- 242,253 ---- focusRect.width+1, focusRect.height+1); } /** ! * Paints the appropriate icon of the button {@code b} in the ! * space {@code iconRect}. * * @param g Graphics to paint to * @param b Button to render for * @param iconRect space to render in * @throws NullPointerException if any of the arguments are null.
< prev index next >