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 78985

Summary: Code completion invoked from breakpoint customizer unusable
Product: editor Reporter: Jiri Kovalsky <jkovalsky>
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: RESOLVED INVALID    
Severity: blocker CC: tboudreau
Priority: P2 Keywords: RELNOTE
Version: 5.x   
Hardware: All   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Attachments: Code completion shown behind actual dialog.

Description Jiri Kovalsky 2006-06-23 15:26:28 UTC
Development build #200606200200 of NetBeans 5.5
Mac OS X version 10.4.6, JDK 1.5.0_06 build #64

Description:
============
Mac OS users have bad luck trying to use code completion when they want to
customize breakpoint and change/setup some condition because whenever they press
CTRL+Space the code completion window shows up behind the actual dialog - see
the screenshot to get what I mean. The strange thing is that it works fine in
"Evaluate Expression" dialog.
On the other hand the same problem happens in GUI designer when one wants to
e.g. write some pre-init code of some component or so. If you can't do anything
about it, please reassign accordingly. Please note that I have not found any
workaround for this issue.

Steps to reproduce:
===================
1. Create new Java application project with main class.
2. Toggle breakpoint at some line.
3. Right click the breakpoint icon in the gutter and choose
"Breakpoint|Customize" from popup menu.
4. Type this. into "Condition" textfield and wait for code completion.
5. It will be displayed in the background.
Comment 1 Jiri Kovalsky 2006-06-23 15:27:31 UTC
Created attachment 31340 [details]
Code completion shown behind actual dialog.
Comment 2 Martin Entlicher 2006-06-26 14:48:51 UTC
This is a problem of the code completion. We do not create those dialogs in
debugger.
Comment 3 Miloslav Metelka 2006-09-12 14:28:51 UTC
The Customize Breakpoint dialog now uses a regular JTextField where the code
completion does not work so the problem is no longer present there but it's
still relevant for GUI Designer.
I've tested on Linux in pre-init code and it works fine.
This shows that the javax.swing.PopupFactory.getPopup(owner=null) does not work
correctly for modal windows on Mac.
Not sure whether javax.swing.PopupFactory.getPopup(owner!=null) would make a
difference.
Closing as invalid for now.