I have 1 textfield and 1 button on a JFrame and having 10 such frames stored in ArrayList al and getting the JFrame instance from traversing the ArrayList at execution time ,So is there a way to access textfield using JFrame instance or i have to name the textfield diffrently 10 times for each frame .
Why do you need to 10 JFrames? JFrame is a top level window.
K. Tsang OCPJP7 OCMJEA6
posted 3 years ago
I am making an Chat Messenger using swing programming and for the private chat option. I am creating the JFrame as soon i click the JList of Online members and from that frame when i hit the send button so that msg is forwarded to the respective online client and as soon as client recieves a private message there also i need to create the JFrame so that is why I asked previous question