Hi Guys,
I tried for reflwable (html text line wrap) in jeditorpane and pagination of jframe resized on java swing application. The html content not fit the size of component. there is no need for horizontal and vertical scrolling. how to fix it please any one help me
JEditorPane editorPane = new JEditorPane();
editorPane.setBackground(Color.white);
editorPane.setEditable(false);
editorPane.setEditorKit( new HTMLEditorKit());
editorPane.setDocument(document);//HTMLDocument file
Hi Guys, I tried for reflwable (html text line wrap) in jeditorpane and pagination of jframe resized on java swing application. The html content not fit the size of component. there is no need for horizontal and vertical scrolling. how to fix it please any one help me
JEditorPane editorPane = new JEditorPane(); editorPane.setBackground(Color.white); editorPane.setEditable(false);
editorPane.setEditorKit( new HTMLEditorKit()); editorPane.setDocument(document);//HTMLDocument file
editorPane can be add in JPanel