Results 1 to 3 of 3
Thread: Linking Jframes
- 03-03-2010, 06:55 AM #1
Member
- Join Date
- Mar 2010
- Posts
- 20
- Rep Power
- 0
Linking Jframes
i m having a project in java,and performing project in netbeans6.8. My problem is.. i want to connect one jframe to another jframe i.e, If I click [Done] button in first jframe then second jframe opens.
I did this in jFrame1:
jFrame2 frm =new jFrame2();
frm.setVisible(true);
But its not showing the second form.
Plz help!Last edited by nonabhai; 03-03-2010 at 06:58 AM.
-
You've likely got a bug somewhere in code that you're not showing us, but we've no idea where it is given the info provided. You may want to provide a lot more information. But having said that, I strongly advise you to not use NetBeans drag-and-drop to create Swing code but instead to go through the tutorials and first learn to do it by hand. Else you'll be groping blindly through one problem after another.
Much luck.Last edited by Fubarable; 03-03-2010 at 12:24 PM.
- 03-04-2010, 02:44 PM #3
Member
- Join Date
- Mar 2010
- Posts
- 20
- Rep Power
- 0
Thanks Fubarable for reply. My problem is solved now. before my first form was JPanel Form and second was JFrame Form, I replaced JPanel Form with JFrame Form and the problem was solved. Can you plz tell me that what is wrong with JPanel Frame. Thanks in advance... :-)
Last edited by nonabhai; 03-04-2010 at 02:57 PM.
Similar Threads
-
linking to a web page
By Juuno in forum Advanced JavaReplies: 7Last Post: 05-01-2009, 02:47 PM -
static linking
By Nicholas Jordan in forum Advanced JavaReplies: 35Last Post: 03-14-2009, 09:17 PM -
linking 2 Jframes
By suhaib1thariq in forum New To JavaReplies: 9Last Post: 02-13-2009, 01:30 AM -
Linking of exe files
By archu2friends in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 02-06-2008, 06:08 AM -
Linking code to GUI Interface
By ai_2007 in forum Advanced JavaReplies: 1Last Post: 07-02-2007, 01:36 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks