KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > swing > plaf > basic > BasicFormattedTextFieldUI


1 /*
2  * @(#)BasicFormattedTextFieldUI.java 1.4 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.basic;
8
9 import javax.swing.*;
10 import javax.swing.plaf.ComponentUI JavaDoc;
11
12 /**
13  * Provides the look and feel implementation for
14  * <code>JFormattedTextField</code>.
15  *
16  * @version 1.4 12/19/03
17  * @since 1.4
18  */

19 public class BasicFormattedTextFieldUI extends BasicTextFieldUI JavaDoc {
20     /**
21      * Creates a UI for a JFormattedTextField.
22      *
23      * @param c the formatted text field
24      * @return the UI
25      */

26     public static ComponentUI JavaDoc createUI(JComponent c) {
27         return new BasicFormattedTextFieldUI JavaDoc();
28     }
29
30     /**
31      * Fetches the name used as a key to lookup properties through the
32      * UIManager. This is used as a prefix to all the standard
33      * text properties.
34      *
35      * @return the name "FormattedTextField"
36      */

37     protected String JavaDoc getPropertyPrefix() {
38     return "FormattedTextField";
39     }
40 }
41
Popular Tags