Results 1 to 3 of 3

Thread: Linking Jframes

  1. #1
    nonabhai is offline Member
    Join Date
    Mar 2010
    Posts
    20
    Rep Power
    0

    Default 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 07:58 AM.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    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 01:24 PM.

  3. #3
    nonabhai is offline Member
    Join Date
    Mar 2010
    Posts
    20
    Rep Power
    0

    Default

    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 03:57 PM.

Similar Threads

  1. linking to a web page
    By Juuno in forum Advanced Java
    Replies: 7
    Last Post: 05-01-2009, 03:47 PM
  2. static linking
    By Nicholas Jordan in forum Advanced Java
    Replies: 35
    Last Post: 03-14-2009, 10:17 PM
  3. linking 2 Jframes
    By suhaib1thariq in forum New To Java
    Replies: 9
    Last Post: 02-13-2009, 02:30 AM
  4. Linking of exe files
    By archu2friends in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 02-06-2008, 07:08 AM
  5. Linking code to GUI Interface
    By ai_2007 in forum Advanced Java
    Replies: 1
    Last Post: 07-02-2007, 02:36 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •