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 - Code completion invoked from breakpoint customizer unusable
Summary: Code completion invoked from breakpoint customizer unusable
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 5.x
Hardware: All Mac OS X
: P2 blocker (vote)
Assignee: Dusan Balek
Keywords: RELNOTE
Depends on:
Reported: 2006-06-23 15:26 UTC by Jiri Kovalsky
Modified: 2007-11-05 13:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

Code completion shown behind actual dialog. (94.65 KB, image/png)
2006-06-23 15:27 UTC, Jiri Kovalsky

Note You need to log in before you can comment on or make changes to this bug.
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

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
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
Closing as invalid for now.