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

How can I make an Action Listener to change JPanel icons on var change

$
0
0
In my game I'm making a type of AI or computer. I need labels to change under certain circumstances like a random number generator or something that determines his action.

Would I use a property change listener for something like this?

For all my actions I have used a mouse listener to change label images and such, I'm just not sure how to do it when no mouse movements or actions are taking place...

Viewing all articles
Browse latest Browse all 51036

Trending Articles



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