KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > java > swing > plaf > motif > MotifEditorPaneUI


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
9 import javax.swing.*;
10 import javax.swing.text.*;
11 import javax.swing.plaf.*;
12 import javax.swing.plaf.basic.BasicEditorPaneUI JavaDoc;
13
14 /**
15  * Provides the look and feel for an pluggable content-type text editor.
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.14 12/19/03
26  */

27 public class MotifEditorPaneUI extends BasicEditorPaneUI JavaDoc {
28
29     /**
30      * Creates a UI for the JTextPane.
31      *
32      * @param c the JTextPane component
33      * @return the UI
34      */

35     public static ComponentUI createUI(JComponent c) {
36         return new MotifEditorPaneUI();
37     }
38
39     /**
40      * Creates the object to use for a caret. By default an
41      * instance of MotifTextUI.MotifCaret is created. This method
42      * can be redefined to provide something else that implements
43      * the Caret interface.
44      *
45      * @return the caret object
46      */

47     protected Caret createCaret() {
48     return MotifTextUI.createCaret();
49     }
50
51 }
52
53
54
Popular Tags