Changing label values from another class

I used a jpanel form that came with netbeans. I have setup everything up how I want but now I would like to add some events...

For instance... When I click on a button I want event to go to a different class. That is easy enough to do..ie:Dog fred = new Dog()

My problem is that within the class "Dog" I want a method that will change the value of the label in my Jpanel class.

How would I do this?

[423 byte] By [Techameda] at [2007-11-27 6:20:21]
# 1
Sounds like Dog shouldn't change the GUI itself but rather trigger a PropertyChangeEvent, so you can add a listener to it responsible for visualisation.
quittea at 2007-7-12 17:35:27 > top of Java-index,Java Essentials,Java Programming...
# 2
How do I trigger a PropertChangeEvent? I am still fairly new to this... Totally new to GUI
Techameda at 2007-7-12 17:35:27 > top of Java-index,Java Essentials,Java Programming...
# 3
http://www.iam.ubc.ca/guides/javatut99/javabeans/properties/bound.html
quittea at 2007-7-12 17:35:27 > top of Java-index,Java Essentials,Java Programming...