Calling one frame from another in NetBeans

I've got a main JFrame and another JInternal Frame that I would like to call when a button on my main JFrame is pressed. Could someone advise me on how to do this?Thanks.
[185 byte] By [faraz4evera] at [2007-10-2 10:06:11]
# 1
JFrame needs to have a reference to whatever it wants to do something with. @see http://forum.java.sun.com/thread.jspa?threadID=698985
mange@orua at 2007-7-13 1:22:31 > top of Java-index,Security,Event Handling...
# 2

I am thinking that you want to call a jinternal frame from the jframe main window. try this code

public void actionPerformed (ActionEvent ae)

{

Object obj = ae.getSource();

if (obj == newBook || obj == book || obj == btnNewBook) {

boolean b = openChildWindow ("Add New Book");

if (b == false) {

AddBook adBook = new AddBook (con);

desktop.add (adBook);//Adding Child Window to DesktopPane.

adBook.show (); //Showing the Child Window.

}

}

thikaa at 2007-7-13 1:22:31 > top of Java-index,Security,Event Handling...