Article View: borland.public.jbuilder.java.swing
Article #595Re: JDesktopPane problem
From: Lodhi
Date: Mon, 14 Mar 2005 21:21
Date: Mon, 14 Mar 2005 21:21
32 lines
2495 bytes
2495 bytes
I am using JinternalFrames in JFrame(JDesktopPane) now . I am getting difficulty in navigation in them...Let us say I have two Jinternalframes student & courses. I can set links to them from JFrame by using JMenubar. But when I try to set their link (as a requirement) inside Jinternal frame like From Student JinternalFrame when a button clicked it opens Course JinternalFrame in JdesktopPane but In Student JinternalFrame i did not have accesisbility of JDesktopPane instance to do work have any suggestion please post it soon with details(and if possible with example) Regards Lodhi "John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote: >On 3/10/2005 at 9:51:19 AM, Lodhi wrote: > >> Is in JDesktopPane I call other Frames (or Internal Frames). As I >> developed 30 JFrame classes in building an application but now I want to >> use them in JDesktopPane to have JDesktoppane facility and using the >> same JMenuBar in all frame classes(without replicating code in other >> classes? Is it possible) > >No, you cannot put a JFrame in a JDesktopPane. If you do a little >refactoring, you could move the UI components that you now have in JFrames >into JPanels. You could them place the JPanels in either type of frame. >It should not be too hard to write a general utility to create the frame, >set up the menu, etc. > >-- >Regards, > >John McGrath [TeamB] > >--------------------------------------------------- >Before sending me e-mail, please read: > http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<4236004b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42305ee7$1@newsgroups.borland.com> <xn0dzmx91zjs8b004@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,585b4c91326488b0 X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Lodhi" <atiqlodhi@yahoo.com> Sender: "Lodhi" <atiqlodhi@yahoo.com> Reply-To: "Lodhi" <atiqlodhi@yahoo.com> Subject: Re: JDesktopPane problem Newsgroups: borland.public.jbuilder.java.swing X-User-Info: 202.125.142.235 References: <42305ee7$1@newsgroups.borland.com> <xn0dzmx91zjs8b004@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <4236004b$1@newsgroups.borland.com> Date: 14 Mar 2005 13:21:15 -0800 X-Trace: newsgroups.borland.com 1110835275 207.105.83.66 (14 Mar 2005 13:21:15 -0800) Lines: 33 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail