• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mr.rahul congrats!! . pls. help me reg. JEditorPane

 
shanmugam soundrapandian
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear rahul and friends
i want to implement help menu for on-line user documentation. i made a html doc and i want to call this html page through JEditorPane.it does not appear while window opens, after resizing two or three times it appears.
pls. write me good solution for this. pls if you have any other idea to display the doc, let me know.
here the code
<code>
public class Help extends JFrame
{
public Help()
{
String s="file:///e:/obj140.htm";
Container cs = getContentPane();
JEditorPane editorPane=null;
try
{
editorPane=new JEditorPane(s);
editorPane.setEditable(false);
}
catch(Exception e)
{
System.out.println("exception"+e);
}
JScrollPane editorSPane = new JScrollPane(editorPane);
cs.add(editorSPane);
repaint();
}
}
</code>
awaiting your reply
regards
soundar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic