Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Problem in calling a JInternalFrame from another JInternalFrame

  1. #1
    Junior Member
    Join Date
    Sep 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Problem in calling 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
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Problem in calling a JInternalFrame from another JInternalFrame

    Quote Originally Posted by Subhasri View Post
    pls give me solution
    This thread has been cross posted here:

    http://www.java-forums.org/awt-swing/48976-problem-calling-jinternalframe-another-jinternalframe.html

    Although cross posting is allowed, for everyone's benefit, please read:

    Java Programming Forums Cross Posting Rules

    The Problems With Cross Posting

    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Replies: 1
    Last Post: February 10th, 2012, 10:05 AM
  2. Problem with onModuleLoad() calling-GWT
    By IliaPrikhodko in forum Web Frameworks
    Replies: 1
    Last Post: August 11th, 2011, 07:12 AM
  3. [SOLVED] How to reload JInternalFrame
    By chyrl in forum AWT / Java Swing
    Replies: 7
    Last Post: April 6th, 2010, 06:31 AM
  4. Key Listener not working in jinternalframe
    By furqankhan in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 12th, 2010, 09:48 AM
  5. Question about JInternalFrame
    By TimW in forum AWT / Java Swing
    Replies: 0
    Last Post: November 7th, 2009, 08:31 AM