posted 21 years ago
I am using the following code to display a HTMLpage.
But the pane is not visible even though its set to true...
No exception is beinmg thrown.
*****************************************************
helpMenuItem.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent event)
{
try
{
helpPane = new JEditorPane();
helpPane.setEditable(false);
helpPane.setContentType("text/html");
File htmlFile=new File("test.html");
URL helpUrl=htmlFile.toURL();
helpPane.setPage(helpUrl);
helpPane.setSize(400,400);
helpPane.setVisible(true);
}
catch(Exception e)
{
e.printStackTrace();
}
}
});
*******************************************************************
Akshay Kumar Sharma<br />**********************<br />Good Better Best <br />Never Let it rest<br />For your good is better<br />and the better is the best