🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JDesktopPane problem

#589
From: Paul Nichols (TeamB)
Date: Sat, 12 Mar 2005 21:51
18 lines
1649 bytes
"Lodhi" <atiqlodhi@yahoo.com> wrote in message
news:42305ee7$1@newsgroups.borland.com...
>
> 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).

Of course!! However, as I stated before, you need to make JMenuBar a class
outside of your MainFrame and deploy your listeners and ActionEvents, in a
separate class as well. See the Tutorials and Examples on Swing development
on the JavaSoft site for details.


BTW, If you are going to be using JDesktopPane, then I would change my
JFrames to JInternalFrames.
Technical Details
Message-ID: <4232129c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!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
Reply-To: "Paul Nichols \(TeamB\)" <paul@comp.net>
From: "Paul Nichols \(TeamB\)" <paul@comp.net>
Newsgroups: borland.public.jbuilder.java.swing
References: <42305ee7$1@newsgroups.borland.com>
Subject: Re: JDesktopPane problem
Date: Sat, 12 Mar 2005 15:51:40 -0600
Lines: 21
Organization: clc
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 24.196.9.79
Message-ID: <4232129c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1110577820 24.196.9.79 (11 Mar 2005 13:50:20 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail