1. /*
  2. * @(#)MotifTextAreaUI.java 1.21 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.motif;
  8. import javax.swing.*;
  9. import javax.swing.text.*;
  10. import javax.swing.plaf.*;
  11. import javax.swing.plaf.basic.BasicTextAreaUI;
  12. /**
  13. * Provides the look and feel for a plain text editor. In this
  14. * implementation the default UI is extended to act as a simple
  15. * view factory.
  16. * <p>
  17. * <strong>Warning:</strong>
  18. * Serialized objects of this class will not be compatible with
  19. * future Swing releases. The current serialization support is appropriate
  20. * for short term storage or RMI between applications running the same
  21. * version of Swing. A future release of Swing will provide support for
  22. * long term persistence.
  23. *
  24. * @author Timothy Prinzing
  25. * @version 1.21 01/23/03
  26. */
  27. public class MotifTextAreaUI extends BasicTextAreaUI {
  28. /**
  29. * Creates a UI for a JTextArea.
  30. *
  31. * @param ta a text area
  32. * @return the UI
  33. */
  34. public static ComponentUI createUI(JComponent ta) {
  35. return new MotifTextAreaUI();
  36. }
  37. /**
  38. * Creates the object to use for a caret. By default an
  39. * instance of MotifTextUI.MotifCaret is created. This method
  40. * can be redefined to provide something else that implements
  41. * the Caret interface.
  42. *
  43. * @return the caret object
  44. */
  45. protected Caret createCaret() {
  46. return MotifTextUI.createCaret();
  47. }
  48. }