Article View: borland.public.jbuilder.java.swing
Article #1254Re: JMenuItem and Canvas
From: J. Berg
Date: Mon, 01 Mar 2004 11:09
Date: Mon, 01 Mar 2004 11:09
28 lines
1999 bytes
1999 bytes
Thanks for your explanation :-) J. Berg Jo�o Henrique Berg dos Santos joaoJo�o Henrique Berg dos Santos joao.hbsantos@terra.com.br Presidente Prudente - SP H� tr�s coisas que nunca voltam atr�s: a flecha lan�ada, a palavra pronunciada e a oportunidade perdida. "John McGrath [TeamB]" <ng-b@JPMcGrath.net> escreveu na mensagem news:4042cbfd$1@newsgroups.borland.com... > On 2/28/2004 at 12:44:38 PM, J. Berg wrote: > > > Why JMenuItem shows under Canvas? > > I'm using setJMenuBar method on frame. > > getContentPane().add() method don't work too. > > Because Canvas is a heavyweight component and JMenuItem is lightweight. > You should generally avoid using heavyweight components along with > Swing. So avoid the components in the package "java.awt". > > -- > Regards, > > John McGrath [TeamB] > > --------------------------------------------------- > Before sending me e-mail, please read: > http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<404319ef@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-06!sn-xit-09!supernews.com!129.250.16.78.MISMATCH!peer1.stngva01.us.to.verio.net!news.verio.net!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4040d37c$1@newsgroups.borland.com> <4042cbfd$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,b8df45e96a5c457a X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2004-03-01 03:29:57 PST From: "J. Berg" <me@home.com> Newsgroups: borland.public.jbuilder.java.swing References: <4040d37c$1@newsgroups.borland.com> <4042cbfd$1@newsgroups.borland.com> Subject: Re: JMenuItem and Canvas Date: Mon, 1 Mar 2004 08:09:47 -0300 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 201.0.10.163 Message-ID: <404319ef@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1078139375 201.0.10.163 (1 Mar 2004 03:09:35 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-06!sn-xit-09!supernews.com!129.250.16.78.MISMATCH!peer1.stngva01.us.to.verio.net!news.verio.net!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail