-
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.
-
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*.
-
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
Forum Rules
|
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
|
Bookmarks