🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JMenuBar vs MenuBar

#12522
From: Randall J. Parr
Date: Thu, 17 Dec 1998 00:00
50 lines
2584 bytes
Matt Krevs wrote:

> A basic rule of thumb might be that you should definitely use the swing menu
> stuff if your are using JFrames or JDialogs as the Swing menu components are
> lightweight. If you use the AWT menus with Swing containers then you may run
> into lightweight/heavyweight problems.
>
> I'm not sure about DecoratedFrame as I have never used it.

When I use "File | New | Frame" in JBuilder it uses a DecoratedFrame

public class DecoratedFrame extends Frame implements Serializable .....

which extends

public class Frame extends Window implements MenuContainer......

This does not look like a Swing container. Does this then imply I should NOT be
placing Swing components into this container (or suffer the
heavyweight/lightweight problems)??? Am I ok if I place ONLY Swing components
into the Decorated Frame??? If I should NOT put Swing components in, what
"frame" should I be adding so that I can safely use Swing components???

Any guidance, pointing to references, etc. would be greatly appreciated.

I am trying to prototype for a fairly large application and want to get clear
what goes with what before I go generating a very big mess.

>
> I think the Swing menu components have better functionality and can be
> integrated with toolbars better.
>
> Randall J. Parr wrote in message <3677B88C.3892424B@temporal.com>...
> >I'm building a Java application using JBuilder 2.01; the application
> >can/will be "installed" on the clients with whatever JVM, etc. required
> >(IE download time not a concern).
> >
> >Should I be using ...swing.JMenuBar or java.awt.MenuBar ???
> >
> >Strong reasons for / against?
> >
> >Fully useable, debuggable, etc. within JBuilder?
> >
> >Thanks
> >R.Parr
> >
> >P.S. I have similar, general, question about using dbSwing, Swing vs
> >JBCL?
> >
> >
Technical Details
Message-ID: <367938FF.E6F98BDF@temporal.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3677B88C.3892424B@temporal.com> <759e85$rd815@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,473a59a171870236
X-Google-Attributes: gid111d45,public
X-Google-Thread: f5619,473a59a171870236
X-Google-Attributes: gidf5619,public
From: "Randall J. Parr" <rparr@temporal.com>
Subject: Re: JMenuBar vs MenuBar
Date: 1998/12/17
Message-ID: <367938FF.E6F98BDF@temporal.com>
X-Deja-AN: 423301847
Content-Transfer-Encoding: 7bit
References: <3677B88C.3892424B@temporal.com> <759e85$rd815@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Reply-To: rparr@temporal.com
Newsgroups: borland.public.jbuilder.java.swing,borland.public.jbuilder.jbcl