Need some guide...
please.. i'd just need help with this
cannot find symbol
symbol: class HyperlinkListener
and here's my code... i hope someone you'd lend a help
import java.io.*;
import java.net.*;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
publicclass WebStriderextends JFrameimplements ActionListener{
JEditorPane content;
JTextField addressbar;
public WebStrider(){
super("Strider Web Browser!");
Container c = getContentPane();
c.setLayout(new FlowLayout());
addressbar =new JTextField(20);
addressbar.addActionListener(this);
content =new JEditorPane();
content.addHyperlinkListener(
new HyperlinkListener(){
publicvoid hyperlinkUpdate(HyperlinkEvent e){
if (e.getHyperlinkEvent() == HyperlinkEvent.EventType.ACTIVATED)
getThePage(e.getUrl().toString());
}
}
);
c.add(addressbar);
c.add(content);
setSize(300,300);
show();
}
publicvoid actionPerformed(ActionEvent e){
getThePage(e.getActionCommand());
}
publicvoid getThePage(String urladdress){
try{
content.setPage(urladdress);
}
catch(IOException io){
JOptionPane.showMessageDialog(null,"ERROR VIEWING PAGE");
}
}
publicstaticvoid main(String[] args){
WebStrider app =new WebStrider();
app.addWindowListener(
new WindowAdapter(){
publicvoid WindowListener(WindowEvent e){
System.exit(0);
}
}
);
}
}

