< prev index next >

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

Print this page




  25 package javax.swing.plaf.metal;
  26 
  27 import java.awt.*;
  28 import java.beans.*;
  29 
  30 import javax.swing.*;
  31 
  32 import javax.swing.text.*;
  33 import javax.swing.plaf.*;
  34 import javax.swing.plaf.basic.*;
  35 
  36 /**
  37  * Basis of a look and feel for a JTextField.
  38  * <p>
  39  * <strong>Warning:</strong>
  40  * Serialized objects of this class will not be compatible with
  41  * future Swing releases. The current serialization support is
  42  * appropriate for short term storage or RMI between applications running
  43  * the same version of Swing.  As of 1.4, support for long term storage
  44  * of all JavaBeans&trade;
  45  * has been added to the <code>java.beans</code> package.
  46  * Please see {@link java.beans.XMLEncoder}.
  47  *
  48  * @author  Steve Wilson
  49  */
  50 @SuppressWarnings("serial") // Same-version serialization only
  51 public class MetalTextFieldUI extends BasicTextFieldUI {
  52 
  53     /**
  54      * Constructs {@code MetalTextFieldUI}.
  55      *
  56      * @param c a component
  57      * @return the instance of {@code MetalTextFieldUI}
  58      */
  59     public static ComponentUI createUI(JComponent c) {
  60         return new MetalTextFieldUI();
  61     }
  62 
  63     /**
  64      * This method gets called when a bound property is changed
  65      * on the associated JTextComponent.  This is a hook


  25 package javax.swing.plaf.metal;
  26 
  27 import java.awt.*;
  28 import java.beans.*;
  29 
  30 import javax.swing.*;
  31 
  32 import javax.swing.text.*;
  33 import javax.swing.plaf.*;
  34 import javax.swing.plaf.basic.*;
  35 
  36 /**
  37  * Basis of a look and feel for a JTextField.
  38  * <p>
  39  * <strong>Warning:</strong>
  40  * Serialized objects of this class will not be compatible with
  41  * future Swing releases. The current serialization support is
  42  * appropriate for short term storage or RMI between applications running
  43  * the same version of Swing.  As of 1.4, support for long term storage
  44  * of all JavaBeans&trade;
  45  * has been added to the {@code java.beans} package.
  46  * Please see {@link java.beans.XMLEncoder}.
  47  *
  48  * @author  Steve Wilson
  49  */
  50 @SuppressWarnings("serial") // Same-version serialization only
  51 public class MetalTextFieldUI extends BasicTextFieldUI {
  52 
  53     /**
  54      * Constructs {@code MetalTextFieldUI}.
  55      *
  56      * @param c a component
  57      * @return the instance of {@code MetalTextFieldUI}
  58      */
  59     public static ComponentUI createUI(JComponent c) {
  60         return new MetalTextFieldUI();
  61     }
  62 
  63     /**
  64      * This method gets called when a bound property is changed
  65      * on the associated JTextComponent.  This is a hook
< prev index next >