• Post Reply Bookmark Topic Watch Topic
  • New Topic

Accesing a Textfield via a JFrame instance  RSS feed

 
Neeraj jain
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
K. Tsang
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you need to 10 JFrames? JFrame is a top level window.
 
Neeraj jain
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!