1. /*
  2. * @(#)SynthFormattedTextFieldUI.java 1.3 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.java.swing.plaf.gtk;
  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.3, 01/23/03 (based on BasicFormattedTextFieldUI v 1.2)
  15. */
  16. class SynthFormattedTextFieldUI extends SynthTextFieldUI {
  17. /**
  18. * Creates a UI for a JFormattedTextField.
  19. *
  20. * @param c the formatted text field
  21. * @return the UI
  22. */
  23. public static ComponentUI createUI(JComponent c) {
  24. return new SynthFormattedTextFieldUI();
  25. }
  26. /**
  27. * Fetches the name used as a key to lookup properties through the
  28. * UIManager. This is used as a prefix to all the standard
  29. * text properties.
  30. *
  31. * @return the name "FormattedTextField"
  32. */
  33. protected String getPropertyPrefix() {
  34. return "FormattedTextField";
  35. }
  36. }