< prev index next >

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

Print this page

        

*** 68,78 **** * 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}. * * @see MetalTheme * @see DefaultMetalTheme * @see OceanTheme --- 68,78 ---- * 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}. * * @see MetalTheme * @see DefaultMetalTheme * @see OceanTheme
*** 1563,1573 **** public void provideErrorFeedback(Component component) { super.provideErrorFeedback(component); } /** ! * Set the theme used by <code>MetalLookAndFeel</code>. * <p> * After the theme is set, {@code MetalLookAndFeel} needs to be * re-installed and the uis need to be recreated. The following * shows how to do this: * <pre> --- 1563,1573 ---- public void provideErrorFeedback(Component component) { super.provideErrorFeedback(component); } /** ! * Set the theme used by {@code MetalLookAndFeel}. * <p> * After the theme is set, {@code MetalLookAndFeel} needs to be * re-installed and the uis need to be recreated. The following * shows how to do this: * <pre>
*** 1595,1605 **** } AppContext.getAppContext().put( "currentMetalTheme", theme ); } /** ! * Return the theme currently being used by <code>MetalLookAndFeel</code>. * If the current theme is {@code null}, the default theme is created. * * @return the current theme * @see #setCurrentTheme * @since 1.5 --- 1595,1605 ---- } AppContext.getAppContext().put( "currentMetalTheme", theme ); } /** ! * Return the theme currently being used by {@code MetalLookAndFeel}. * If the current theme is {@code null}, the default theme is created. * * @return the current theme * @see #setCurrentTheme * @since 1.5
*** 1635,1650 **** } return currentTheme; } /** ! * Returns an <code>Icon</code> with a disabled appearance. ! * This method is used to generate a disabled <code>Icon</code> when * one has not been specified. For example, if you create a ! * <code>JButton</code> and only specify an <code>Icon</code> via ! * <code>setIcon</code> this method will be called to generate the ! * disabled <code>Icon</code>. If null is passed as <code>icon</code> * this method returns null. * <p> * Some look and feels might not render the disabled Icon, in which * case they will ignore this. * --- 1635,1650 ---- } return currentTheme; } /** ! * Returns an {@code Icon} with a disabled appearance. ! * This method is used to generate a disabled {@code Icon} when * one has not been specified. For example, if you create a ! * {@code JButton} and only specify an {@code Icon} via ! * {@code setIcon} this method will be called to generate the ! * disabled {@code Icon}. If null is passed as {@code icon} * this method returns null. * <p> * Some look and feels might not render the disabled Icon, in which * case they will ignore this. *
*** 1661,1678 **** } return super.getDisabledIcon(component, icon); } /** ! * Returns an <code>Icon</code> for use by disabled * components that are also selected. This method is used to generate an ! * <code>Icon</code> for components that are in both the disabled and ! * selected states but do not have a specific <code>Icon</code> for this ! * state. For example, if you create a <code>JButton</code> and only ! * specify an <code>Icon</code> via <code>setIcon</code> this method * will be called to generate the disabled and selected ! * <code>Icon</code>. If null is passed as <code>icon</code> this method * returns null. * <p> * Some look and feels might not render the disabled and selected Icon, * in which case they will ignore this. * --- 1661,1678 ---- } return super.getDisabledIcon(component, icon); } /** ! * Returns an {@code Icon} for use by disabled * components that are also selected. This method is used to generate an ! * {@code Icon} for components that are in both the disabled and ! * selected states but do not have a specific {@code Icon} for this ! * state. For example, if you create a {@code JButton} and only ! * specify an {@code Icon} via {@code setIcon} this method * will be called to generate the disabled and selected ! * {@code Icon}. If null is passed as {@code icon} this method * returns null. * <p> * Some look and feels might not render the disabled and selected Icon, * in which case they will ignore this. *
< prev index next >