< prev index next >

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

Print this page

        

*** 43,53 **** * 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 --- 43,53 ---- * 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 // ******************************** /** * 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 // ******************************** /** * 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 */
< prev index next >