aspose file tools*
The moose likes Beginning Java and the fly likes What listener to implement for JList? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What listener to implement for JList?" Watch "What listener to implement for JList?" New topic
Author

What listener to implement for JList?

Bud Tippins
Ranch Hand

Joined: Jan 28, 2011
Posts: 52
I have the following code in NetBeans. On line #7 I'm getting the following error: "cannot find symbol - symbol: class ListSelectionListener" - question: what Listener should I have ListTest implement for a JList?

Thank you.



Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3071
    
  33

ListSelectionListener is part of javax.swing.event package which you haven't imported in your Java code.


Mohamed Sanaulla | My Blog
Bud Tippins
Ranch Hand

Joined: Jan 28, 2011
Posts: 52
Thank you. That worked.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What listener to implement for JList?