45 |
import javax.swing.JEditorPane; |
import javax.swing.JEditorPane; |
46 |
import javax.swing.event.CaretEvent; |
import javax.swing.event.CaretEvent; |
47 |
import javax.swing.event.CaretListener; |
import javax.swing.event.CaretListener; |
48 |
|
import javax.swing.text.html.BlockView; |
49 |
|
|
50 |
/** |
/** |
51 |
* An {@link EditorKit} that supports editing styled text. |
* An {@link EditorKit} that supports editing styled text. |
485 |
else if (name.equals(AbstractDocument.ParagraphElementName)) |
else if (name.equals(AbstractDocument.ParagraphElementName)) |
486 |
view = new ParagraphView(element); |
view = new ParagraphView(element); |
487 |
else if (name.equals(AbstractDocument.SectionElementName)) |
else if (name.equals(AbstractDocument.SectionElementName)) |
488 |
view = new BoxView(element, View.Y_AXIS); |
view = new BlockView(element, View.Y_AXIS); |
489 |
else if (name.equals(StyleConstants.ComponentElementName)) |
else if (name.equals(StyleConstants.ComponentElementName)) |
490 |
view = new ComponentView(element); |
view = new ComponentView(element); |
491 |
else if (name.equals(StyleConstants.IconElementName)) |
else if (name.equals(StyleConstants.IconElementName)) |