Results 1 to 6 of 6
  1. #1
    sagarvk is offline Member
    Join Date
    Jan 2015
    Posts
    25
    Rep Power
    0

    Default How to show a hidden jinternalframe?

    Hi Everyone
    I am developing a Billing App in Java using a mdi form and others are child forms.What i want to do is I have a Item master form in which when i press y in the Batchwise txtbox a new internalframe gets opened to enter the opening batchwise details of the item and I hide the form Itemmaster. Now After filling the batch details of Item in the Batch Details form,I want to show the hidden Itemmaster form in the desktop pane again and close the Batch Details Form.Pls help me

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: How to show a hidden jinternalframe?

    The first steps would be to just create a regular JFrame and then create some internal frames and see how to manipulate them. Post your code here and report any specific problems you are having.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #3
    sagarvk is offline Member
    Join Date
    Jan 2015
    Posts
    25
    Rep Power
    0

    Default Re: How to show a hidden jinternalframe?

    I am actually stuck.I am a newbie to java and dont know how to manipulate between the two jinternalframes.

  4. #4
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: How to show a hidden jinternalframe?

    Then just post some code where you have created them. Then asks specific questions about what you want to do.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  5. #5
    sagarvk is offline Member
    Join Date
    Jan 2015
    Posts
    25
    Rep Power
    0

    Default Re: How to show a hidden jinternalframe?

    Actually I was trying to First hide the JInternalFrame A and create andshow JInternalFrame B then, from B by clicking the button the InternalFrame A should be shown and the B should be disposed.
    I have solved the problem by using this code in the button click event in InetrnalFrame B.

    JDesktopPane desktopPane = getDesktopPane();
    JInternalFrame[] frames = desktopPane.getAllFrames();
    for (int i = 0 ; i < frames.length ; i ++)
    {
    frames[i].setVisible(true);
    }
    this.dispose();

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    12,059
    Rep Power
    25

    Default Re: How to show a hidden jinternalframe?

    Moved from Advanced Java. Please go through BB Code List - Java Programming Forum - Learn Java Programming

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 1
    Last Post: 09-27-2011, 04:19 PM
  2. Replies: 4
    Last Post: 09-27-2011, 09:20 AM
  3. Replies: 0
    Last Post: 08-09-2011, 06:07 PM
  4. Replies: 3
    Last Post: 05-27-2010, 10:54 AM
  5. netbeans 6.0 not show commpunent or show blank page
    By fahimaamir in forum NetBeans
    Replies: 1
    Last Post: 01-26-2008, 06:20 AM

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
  •