• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

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

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic