Article View: borland.public.jbuilder.java.swing
Article #12554Re: JMenuBar vs MenuBar
From: Greg Hamer
Date: Wed, 23 Dec 1998 00:00
Date: Wed, 23 Dec 1998 00:00
60 lines
3151 bytes
3151 bytes
DecoratedFrame does not have a setJMenuBar property since it does not extend JFrame. You can put swing stuff on it without problems, but if you are going to use swing, might as well use a JFrame. The only thing DecoratedFrame gives you over a Frame is that the System close button works via the exitOnClose property. Swings JFrame has a defaultCloseOperation for handling the same thing. The new frame wizard will extend Jframe if you chooe it from the dropdown list. Randall J. Parr wrote: > 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:
<3681ADA7.34A3AABE@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3677B88C.3892424B@temporal.com> <759e85$rd815@forums.borland.com> <367938FF.E6F98BDF@temporal.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: Greg Hamer <ghamer@inprise.com> Subject: Re: JMenuBar vs MenuBar Date: 1998/12/23 Message-ID: <3681ADA7.34A3AABE@inprise.com> X-Deja-AN: 425386877 Content-Transfer-Encoding: 7bit References: <3677B88C.3892424B@temporal.com> <759e85$rd815@forums.borland.com> <367938FF.E6F98BDF@temporal.com> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing,borland.public.jbuilder.jbcl