below is a programme which is not showing the html page when button
is clicked. Please help
**********************************************************************
import java.awt.event.*;
import java.net.*;
/*
<applet code="NewWnd.class" width=250 height=250></applet>
*/
public class NewWnd extends Applet implements ActionListener
{
Button bClick;
public void init()
{
bClick=new Button("Click me");
add(bClick);
bClick.addActionListener(this);
}
public void actionPerformed(ActionEvent ae)
{
if(ae.getSource()==bClick)
{
AppletContext ac=getAppletContext();
URL url=getCodeBase();
try{
ac.showDocument(new URL
(url+"Login1.html"),"_blank");
showStatus(url.toString());
}catch(MalformedURLException e)
{
showStatus("URL not found");
}
}
}
}