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