dcsimg
Trouble with parsing of HTML-file using JTextPane, HTMLEditorKit, HTMLDocument
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Eugeny_Dzhurinsky
Posted On:   Tuesday, April 16, 2002 09:34 PM

			
jtpMain = new JTextPane();
htmlKit = new ExtendedHTMLEditorKit();
htmlDoc = (HTMLDocument)(htmlKit.createDefaultDocument());
styleSheet = htmlDoc.getStyleSheet();

jtpMain.setEditorKit(htmlKit);
jtpMain.setDocument(htmlDoc);
jtpMain.setMargin(new Insets(4, 4, 4, 4));


then when I do something like this

jtpMain.setText(jtpMain.getText());

i'm loosing the ability to apply the

StyledEditorKit.FontSizeAction

to selected text.

How to fix this problem?
About | Sitemap | Contact