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. import javax.swing.*;
  9. import javax.swing.plaf.ComponentUI;
  10. /**
  11. * Provides the look and feel implementation for
  12. * <code>JFormattedTextField</code>.
  13. *
  14. * @version 1.4 12/19/03
  15. * @since 1.4
  16. */
  17. public class BasicFormattedTextFieldUI extends BasicTextFieldUI {
  18. /**
  19. * Creates a UI for a JFormattedTextField.
  20. *
  21. * @param c the formatted text field
  22. * @return the UI
  23. */
  24. public static ComponentUI createUI(JComponent c) {
  25. return new BasicFormattedTextFieldUI();
  26. }
  27. /**
  28. * Fetches the name used as a key to lookup properties through the
  29. * UIManager. This is used as a prefix to all the standard
  30. * text properties.
  31. *
  32. * @return the name "FormattedTextField"
  33. */
  34. protected String getPropertyPrefix() {
  35. return "FormattedTextField";
  36. }
  37. }