Results 1 to 2 of 2
  1. #1
    Subhasri is offline Member
    Join Date
    Sep 2011
    Posts
    15
    Rep Power
    0

    Post How to call a JInternalFrame from another JInternalFrame?

    I am having 3 Jinternal frames. When I am calling second Internalframe through a button in first Internalframe, it is working. But when I am calling third Internalframe through a button in second Internalframe, third Internalframe is not opened. But When I am calling that same third frame through a button in Homepage (eventhough the second frame is opened),third frame is opened and working fine. Why that third Internalframe is not opened from second Internalframe?

    This is my code for calling second InternalFrame from the first InternalFrame:
    HomePage page;
    PurchaseInvoice PI=new PurchaseInvoice(this,docentry);
    page.jDesktopPane1.add(PI);
    this.dispose();
    PI.moveToFront();

    It is working fine.

    This is my code for calling third InternalFrame from the second InternalFrame:
    HomePage page;
    PurchaseReturn PR=new PurchaseReturn(this,docentry);
    page.jDesktopPane1.add(PR);---
    this.dispose();
    PR.moveToFront();

    But when i executed this code,due to the thirdline(marked as ---),that corresponding internal frame is not opened.

    pls give me solution

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

    Default Re: How to call a JInternalFrame from another JInternalFrame?

    Duplicate of this: problem-calling-jinternalframe-another-jinternalframe.

    This thread locked and OP warned not to multi-post the same question multiple times and not to cross-post without notification.

Similar Threads

  1. Replies: 4
    Last Post: 09-27-2011, 09:20 AM
  2. Replies: 0
    Last Post: 08-09-2011, 06:07 PM
  3. jInternalFrame
    By kiranjava in forum Advanced Java
    Replies: 1
    Last Post: 05-20-2010, 12:04 PM
  4. JInternalFrame Help
    By collin389 in forum New To Java
    Replies: 2
    Last Post: 03-16-2010, 12:23 AM
  5. JInternalFrame Help
    By collin389 in forum AWT / Swing
    Replies: 1
    Last Post: 03-15-2010, 09:24 PM

Posting Permissions

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