DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  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*.



Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links