Not sure if this has been asked before, it's a bit difficult to explain.
I have 2 classes, Class A and Class B
Class A creates an instance of Class B (which is a dialog box using JDialog). The user is then asked for text input (stored in a String variable).
How do I tell Class A that the user has now updated the variable and get a copy of it?
Using Java Swing btw,
Thanks
T
In general, Observer Pattern deals with such cases
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With