KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > swing > plaf > metal > MetalTextFieldUI


1 /*
2  * @(#)MetalTextFieldUI.java 1.15 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7 package javax.swing.plaf.metal;
8
9 import java.awt.*;
10 import java.beans.*;
11
12 import javax.swing.*;
13
14 import javax.swing.text.*;
15 import javax.swing.plaf.*;
16 import javax.swing.plaf.basic.*;
17
18 /**
19  * Basis of a look and feel for a JTextField.
20  * <p>
21  * <strong>Warning:</strong>
22  * Serialized objects of this class will not be compatible with
23  * future Swing releases. The current serialization support is
24  * appropriate for short term storage or RMI between applications running
25  * the same version of Swing. As of 1.4, support for long term storage
26  * of all JavaBeans<sup><font size="-2">TM</font></sup>
27  * has been added to the <code>java.beans</code> package.
28  * Please see {@link java.beans.XMLEncoder}.
29  *
30  * @author Steve Wilson
31  * @version 1.15 12/19/03
32  */

33 public class MetalTextFieldUI extends BasicTextFieldUI {
34
35     public static ComponentUI createUI(JComponent c) {
36         return new MetalTextFieldUI JavaDoc();
37     }
38
39     /**
40      * This method gets called when a bound property is changed
41      * on the associated JTextComponent. This is a hook
42      * which UI implementations may change to reflect how the
43      * UI displays bound properties of JTextComponent subclasses.
44      *
45      * @param evt the property change event
46      */

47     public void propertyChange(PropertyChangeEvent evt) {
48     super.propertyChange(evt);
49     }
50
51  }
52
Popular Tags