Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

PropertyChange Listener for icons.

$
0
0
I am trying to write a PropertyChange Listener which detects whether a JButton has an ImageIcon or not.

`"icon"` is a beans property but I can't seem to add iconListener or something equivalent to the PropertyChangeListener.

buttonArray[a].addChangeListener("icon",new iconListener()); // doesn't work

buttonArray[a].addChangeListener("icon", new ImageIconListener()); // doesn't work

Any guidance in the right direction is :^:/>

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>