1. Alternatives to JEditorPane & HTMLEditorKit - too slow stackoverflow.comI'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.comHi |
3. JEditorPane, HTMLEditorKit - custom action inserting custom tag stackoverflow.comI'm faithing with |
4. HTMLEditorKit modify my text in JEditorPane HTML stackoverflow.comI'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.
|
5. HTMLEditorKit and JEditorpane Sizing!! coderanch.compublic 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 ) ); } } ... |