0

Hello,

I basically have 2 GUI windows in my project.

Just to explain it better, let's call the 2 GUI windows:
- Window A
- Window B

In Window A, there is a variable that I want to change, but I have to change the value of the variable in Window A from a JTextField in Window B.

How can I do this?

Thanks.

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by sharkbate24
0

by calling a method from Window A, from within Window B, passing the new value as a parameter and passing it to a set-method

0

by calling a method from Window A, from within Window B, passing the new value as a parameter and passing it to a set-method

Excellent, thanks.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.