Hi im new at java

if my question is easy im sorry. Im trying to write a messenger client program. Client program contains two part main GUI and budy GUI. Main GUI controls the connection and list of budy. Budy Guı controls chat with only one budy. Messenger main program and communication is ok with smack.api (XMPP lib). But i want to open a frames for each budies which i want at the same time by same frame structure. In netbeans i create and design a new JFrame for budy GUI. Then i construct it each budy which i want to chat. main program can send the data to client frame but client program cant send data to main program.

How can i handle this?