Computer Science Canada Adding an ActionListener to JLists *AAH* |
Author: | Aziz [ Fri Sep 02, 2005 9:00 am ] |
Post subject: | Adding an ActionListener to JLists *AAH* |
Everything was running smoothly until I ran into this problem....I want some buttons to be enabled (Open/Rename/Delete) when a user selects a list from the JList, but it doesn't have an addActionListener method, neither does DefautListModel...any help? Please? |
Author: | Aziz [ Fri Sep 02, 2005 10:29 am ] | ||||
Post subject: | |||||
Never mind, figured it out. For anyone else though, this works fine: Make sure you include this line too:
|