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 88493 - Wrong context menu presentation when right-clicking Java source code editor
Summary: Wrong context menu presentation when right-clicking Java source code editor
Status: RESOLVED WORKSFORME
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Adam Sotona
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-02 09:55 UTC by nart
Modified: 2007-05-21 16:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nart 2006-11-02 09:55:38 UTC
Right-clicking the Java code editor on Netbeans 5.5, after installing the
mobility pack, which shows the usual Context menu for refactorings, code
editing, etc... will show two JSeperator(s) with no JMenuItem in between. The
JSeperator(s) are placed between the 'Show Javadoc' and 'Refactor' menu items.
Is the mobility pack confusing the part thats building that context menu by
possibly trying to show extra functionality there?

Reporoduced as follows: (Windows XP SP2, Java 5 Update 9)
1-install fresh copy of netbeans 5.5
2-start netbeans, create new Java application, accept the defaults, i.e. create
  a Main class called javaapplication1.Main
3-after the file is created, right click the source code of javaapplication1.Main
  and everything looks correctly as it should.
4-exit netbeans, install mobility pack
5-start netbeans, back to javaapplication1.Main if not there already
6-right-click for the editor context menu, and you get the two JSeperator(s)
that are almost stuck together with no JMenuItem between them.
Comment 1 Jiri Prox 2006-11-02 10:58:22 UTC
Not so serious -> P4
Reassigning to mobility for evaluation
Comment 2 nart 2007-01-03 06:43:43 UTC
Running this on JDK 6 fixes it. 
Comment 3 Adam Sotona 2007-05-21 16:13:28 UTC
I do not see the problem more.
There have been some recent changes in popup menu construction in NetBeans.
Please reopen if it happens again.