42 |
import javax.swing.JEditorPane; |
import javax.swing.JEditorPane; |
43 |
import javax.swing.plaf.ComponentUI; |
import javax.swing.plaf.ComponentUI; |
44 |
import javax.swing.text.EditorKit; |
import javax.swing.text.EditorKit; |
|
import javax.swing.text.Element; |
|
45 |
import javax.swing.text.JTextComponent; |
import javax.swing.text.JTextComponent; |
|
import javax.swing.text.PlainView; |
|
|
import javax.swing.text.View; |
|
46 |
|
|
47 |
/** |
/** |
48 |
* The UI class for {@link JEditorPane}s. |
* The UI class for {@link JEditorPane}s. |
73 |
// Do nothing here. |
// Do nothing here. |
74 |
} |
} |
75 |
|
|
|
// FIXME: Should not be overridden here but instead be handled by the |
|
|
// JEditorPane's EditorKit. However, as long as we don't have styles in |
|
|
// place this doesn't make much sense. |
|
|
public View create(Element elem) |
|
|
{ |
|
|
return new PlainView(elem); |
|
|
} |
|
|
|
|
76 |
/** |
/** |
77 |
* Returns the property prefix to be used by this UI class. This is |
* Returns the property prefix to be used by this UI class. This is |
78 |
* <code>EditorPane</code> in this case. |
* <code>EditorPane</code> in this case. |