Launch one jframe class from another jframe class with Netbeans IDE GUI

need help~~~ am new to Netbeans 5.5...situation is i have two classes coded in two separate .java files using the generated code for the GUI.. i would like to launch one of the class from the other using actionperformed command.. meaning launching form1 from form2 when a user clicks on button but i'm unable to do so because the frame.setVisible(true)

does not work on generated codes, i think.. so i'm not sure what to do or is there any other way than having to recode both .java files instead of using the generated codes.. appreciate it if anyone could help.. i can even provide u with the codes for both forms to ease the process of help.. thank you..

[706 byte] By [nastassjaa] at [2007-11-27 7:58:27]
# 1
> does not work on> generated codes, i think.. What does "does not work" mean, and who forces you to generate code?And make sure you use a workter thread, otherwise your new GUI will block the repainting of the old one.Oh, and we have a Swing forum.
CeciNEstPasUnProgrammeura at 2007-7-12 19:40:22 > top of Java-index,Java Essentials,Java Programming...
# 2
means i tried that line of code and it does not launch the intended form that i wan it to launch.. so i'm not sure if there's any other ways to do it or not..
nastassjaa at 2007-7-12 19:40:22 > top of Java-index,Java Essentials,Java Programming...