jscrollpane dosen't work....
hi,
i m using a jscrollpane with a jeditorpane.when i use only jeditorpane to see a html page everything is ok.but when i add jscrollpane to the jeditorpane i cannot see the html page and even the scrollpane.my code is as follows...
JEditorPane jEditorPane1 = new JEditorPane();
JScrollPane editorScrollPane = new JScrollPane(jEditorPane1,
JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
editorScrollPane.setPreferredSize(new Dimension(450,500));
editorScrollPane.setMinimumSize(new Dimension(200,200));
//panel3.add(jEditorPane1);
//panel3.add(editorScrollPane);
this.getContentPane().add(jEditorPane1, null);
this.getContentPane().add(editorScrollPane,null);
jEditorPane1.setEditable(false);
jEditorPane1.setEditorKit(new HTMLEditorKit());
jEditorPane1.setContentType("text/html");
try {
jEditorPane1.setText(inputLine);
} catch(Exception exp) {
exp.printStackTrace(System.out);
}
here inputline is an html string read from a cgiscript.
any help would be highly appreciated..
anurag.

