🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #591

Re: JDesktopPane problem

#591
From: John McGrath [TeamB]
Date: Sat, 12 Mar 2005 02:06
22 lines
1777 bytes
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: <xn0dzmx91zjs8b004@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <42305ee7$1@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: "John McGrath  [TeamB]" <ng-b@JPMcGrath.net>
Subject: Re: JDesktopPane problem
Newsgroups: borland.public.jbuilder.java.swing
References: <42305ee7$1@newsgroups.borland.com>
User-Agent: XanaNews/1.17.2.7
Message-ID: <xn0dzmx91zjs8b004@newsgroups.borland.com>
X-Ref: newsgroups.borland.com ~XNS:0000027E
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
NNTP-Posting-Host: 151.201.155.159
Date: 11 Mar 2005 18:06:40 -0800
X-Trace: newsgroups.borland.com 1110593200 151.201.155.159 (11 Mar 2005 18:06:40 -0800)
Lines: 22
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail