change a frame's attribute by pressing a button

Posted by asavu on Stack Overflow See other posts from Stack Overflow or by asavu
Published on 2010-03-13T14:08:40Z Indexed on 2010/03/13 14:15 UTC
Read the original article Hit count: 216

Filed under:
|
|
|
|

Hi. Suppose we have a JFrame named frame1 with a String attribute named credentials set inittially to null. I have a jButton named button1 attached to the frame and I want to change the frame1 String credentials attribute by pressing button1. I need some piece of advice regarding the ActionListener code especially. Could you guys pls help me? Thank you.

© Stack Overflow or respective owner

Related posts about java

Related posts about access