This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 16709

Summary: setJMenuBar() call is elusive
Product: guibuilder Reporter: Gabor Kincses <npure2001>
Component: CodeAssignee: issues@guibuilder <issues>
Status: CLOSED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Gabor Kincses 2001-10-19 05:08:19 UTC
A JMenuBar placed into a JFrame or JApplet becomes invisible after a while in
the Form Editor.  This seems to be due to the fact that the setJMenuBar(menuBar)
call disappears from the generated code.  Placing the setJMenuBar(menuBar) call
outside the generated code fixes the problem at runtime (of course), but not
having the menubar in the Form Editor is annoying.  I have seen one other person
reporting this exact same problem on a newsgroup (he is running FreeBSD).
Comment 1 Marian Mirilovic 2001-10-19 08:43:01 UTC
duplicate of issue 11825:
-  setMenuBar line not generated if added it to form was last
operation which you do, 
or issue 14199 :
- menu bar 
- Menu Bar that was renamed dissappears after reopen form file

*** This issue has been marked as a duplicate of 14199 ***
Comment 2 Marian Mirilovic 2001-10-24 09:27:50 UTC
> Gabor Kincses <npure2001@yahoo.com> wrote
> Thanks for the update to duplicate.  The netbeans
> issue query page is ridiculously complex.  I still
> can't find any issue that have setJMenuBar in the
> text.  This issue tracking system is definitely
> wasting everybody's time.  Viva gnats!
> The product is splendid.
> Thanks,
> Gabor

Yes you are right, to type right query you must "meassure a long way "
:0