How do I change an attribute for something from another class?

Is there any way to reach a method (in this case a method changing the attribute of a swing object, let's say a JTextBox) from another class without making another instance of the object (logically, I don't want to make a new window for every textbox that is to be modified).

Any alternative solutions would be welcome too, I just don't know how to go about it.

[377 byte] By [hogla] at [2007-11-27 7:56:22]
# 1
If you want to invoke a method on an Object then you need a reference to the Object. So when you create the second class you somehow need to pass a reference to the text field.Your question is not very specific so I can't give you a specific answer.
camickra at 2007-7-12 19:37:57 > top of Java-index,Desktop,Core GUI APIs...