1. /*
  2. * @(#)MotifEditorPaneUI.java 1.14 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 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.BasicEditorPaneUI;
  12. /**
  13. * Provides the look and feel for an pluggable content-type text editor.
  14. * <p>
  15. * <strong>Warning:</strong>
  16. * Serialized objects of this class will not be compatible with
  17. * future Swing releases. The current serialization support is appropriate
  18. * for short term storage or RMI between applications running the same
  19. * version of Swing. A future release of Swing will provide support for
  20. * long term persistence.
  21. *
  22. * @author Timothy Prinzing
  23. * @version 1.14 12/19/03
  24. */
  25. public class MotifEditorPaneUI extends BasicEditorPaneUI {
  26. /**
  27. * Creates a UI for the JTextPane.
  28. *
  29. * @param c the JTextPane component
  30. * @return the UI
  31. */
  32. public static ComponentUI createUI(JComponent c) {
  33. return new MotifEditorPaneUI();
  34. }
  35. /**
  36. * Creates the object to use for a caret. By default an
  37. * instance of MotifTextUI.MotifCaret is created. This method
  38. * can be redefined to provide something else that implements
  39. * the Caret interface.
  40. *
  41. * @return the caret object
  42. */
  43. protected Caret createCaret() {
  44. return MotifTextUI.createCaret();
  45. }
  46. }