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);

}

}

);

}

}

[3302 byte] By [strider_hiryu007a] at [2007-11-27 8:41:03]
# 1
the package is:javax.swing.event;I don't see where you imported that.
Navy_Codera at 2007-7-12 20:39:49 > top of Java-index,Java Essentials,New To Java...
# 2
Use this in the future if you don't know what package a class is in. http://java.sun.com/j2se/1.5.0/docs/api/
CaptainMorgan08a at 2007-7-12 20:39:49 > top of Java-index,Java Essentials,New To Java...