htmleditorkit « JEditorPane « Java Swing Q&A





1. Alternatives to JEditorPane & HTMLEditorKit - too slow    stackoverflow.com

I'm trying to implement a basic text editor with options for font, bold, italic, underline, and color. I've used JEditorPane and the associated HTMLEditorKit but when I load a 400K ...

2. Disabling scrolling to end of text in JEditorPane    stackoverflow.com

Hi
I used a JEditorPane with HTMLEditorKit to showing HTML text with ability to wrap text.
The problem is when I set it's content using .setText method it automatically scrolls to the end ...

3. JEditorPane, HTMLEditorKit - custom action inserting custom tag    stackoverflow.com

I'm faithing with JEditorPane. I need simple editor. I've solved the problem with loading and modified HTML containing custom (two) tags (see my older post). It displays the document properly ...

4. HTMLEditorKit modify my text in JEditorPane HTML    stackoverflow.com

I'm using a JTextPane to edit HTML and when I use getText() and setText() methods it changes my text. e.g If I set this text with setter method.

<html> 
<head> 
</head> 
<body ...

5. HTMLEditorKit and JEditorpane Sizing!!    coderanch.com

public class SizableEditorPane extends JEditorPane { private int workingWidth = 160; public void setText( String text ) { super.setText( text ); int resultHeight = 0; int resultWidth = 0; View view = this.getUI().getRootView( this ); view.setSize( workingWidth, Integer.MAX_VALUE ); // COMMENT #1 resultHeight = (int) (view.getMinimumSpan( View.Y_AXIS ) ); resultWidth = workingWidth; setPreferredSize( new Dimension( resultWidth, resultHeight ) ); } } ...