How to invoke a JInternalFrame from a button?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: How to invoke a JInternalFrame from a button?

  1. #1
    Arun J Martin Guest

    How to invoke a JInternalFrame from a button?


    Hi,
    I have designed a menu in Swing. On clicking a particular menuitem, a JInternal
    Frame is displayed. The JInternalFrame has got 2 buttons. On clicking a particular
    button,another JInternal Frame should be displayed ie inside the actionperformed
    of the button,another java pgm is invoked and that pgm should be shown as
    a JInternalFrame erasing its motherJInternalFrame.

    Thanks.
    Arun.

  2. #2
    Mephosorpolis Guest

    Re: How to invoke a JInternalFrame from a button?


    "Arun J Martin" <arjm24@rediffmail.com> wrote:
    >
    >Hi,
    >I have designed a menu in Swing. On clicking a particular menuitem, a JInternal
    >Frame is displayed. The JInternalFrame has got 2 buttons. On clicking a

    particular
    >button,another JInternal Frame should be displayed ie inside the actionperformed
    >of the button,another java pgm is invoked and that pgm should be shown as
    >a JInternalFrame erasing its motherJInternalFrame.
    >
    >Thanks.
    >Arun.


    You need a class that manages your internal frames. The manager would be
    a singleton if you only have one desktop in your application. It would know
    how to add and remove internal frames, including how to remove *this*.

  3. #3
    Rajkamal Gopinath Guest

    Re: How to invoke a JInternalFrame from a button?


    Hi,

    Activate JInternalFrame by setting setVisible() to true & false programmatically..

    Regards

    Rajkamal

    "Mephosorpolis" <agramont@mn.rr.com> wrote:
    >
    >"Arun J Martin" <arjm24@rediffmail.com> wrote:
    >>
    >>Hi,
    >>I have designed a menu in Swing. On clicking a particular menuitem, a JInternal
    >>Frame is displayed. The JInternalFrame has got 2 buttons. On clicking a

    >particular
    >>button,another JInternal Frame should be displayed ie inside the actionperformed
    >>of the button,another java pgm is invoked and that pgm should be shown

    as
    >>a JInternalFrame erasing its motherJInternalFrame.
    >>
    >>Thanks.
    >>Arun.

    >
    >You need a class that manages your internal frames. The manager would be
    >a singleton if you only have one desktop in your application. It would

    know
    >how to add and remove internal frames, including how to remove *this*.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center