have an eventlistener change values
I'm working through a little project to teach myself some java, but I've hit a wall here. I'll try to explain what I'm trying to do:
I'm writing a simplified minesweeper. I use JButtons as squares with MouseListeners to process left/right-clicks.
The problem is that I don't know how to make an EventListener return a value, or change a value in the main class that created the Listener.
I know how to pass parameters to the EventListeners, but that doesn't help me solve this problem.
any help would be appreciated,