R
Rpng123
Hello,
I have a jPanel (grid layout) jA1 which contains another jPanel jB1. jA1 also
contains a textbox, jtfResult. When an action is performed in jB1 I want to
set text in jtfResult which is in jA1. That is where my problem is. Don't
know how to reference jtfResult from jB1. I do have a standalone class (cls1)
which contains properties that get set from jB1 - mousePressed event. Could I
reference jtfResult from here? Do I need to do something in Frame1? jA1
already references cls1. In Frame1 I have jA1.setCls(new cls());
Any suggestions appreciated how to reference jtfResult in jA1 from jB1
(mousePressed Event).
Thanks,
Rich
I have a jPanel (grid layout) jA1 which contains another jPanel jB1. jA1 also
contains a textbox, jtfResult. When an action is performed in jB1 I want to
set text in jtfResult which is in jA1. That is where my problem is. Don't
know how to reference jtfResult from jB1. I do have a standalone class (cls1)
which contains properties that get set from jB1 - mousePressed event. Could I
reference jtfResult from here? Do I need to do something in Frame1? jA1
already references cls1. In Frame1 I have jA1.setCls(new cls());
Any suggestions appreciated how to reference jtfResult in jA1 from jB1
(mousePressed Event).
Thanks,
Rich