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 56194 - Kill the "popup hack"
Summary: Kill the "popup hack"
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Simonek
URL:
Keywords:
Depends on:
Blocks: 50352
  Show dependency tree
 
Reported: 2005-03-10 18:58 UTC by Jan Chalupa
Modified: 2008-12-22 16:48 UTC (History)
5 users (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Chalupa 2005-03-10 18:58:25 UTC
I spent some time investigating bug #47719 only to find that the bug has many
duplicates that were resolved with a recommendation to use a workaround with the
netbeans.popup.no_hack=true property. If I understand it correctly, the property
itself is a hack to disable another hack that was supposed to address problems
with menu placement in ancient (1.2.x) JDK versions.

I've tested with n.p.no_hack=true on 1.4.2 (Windows, Mac) and 1.5.0 (Windows)
and all menus (both heavy-weight and light-weight) seemed to work fine. Morever,
the problem described in #47719 disappeared. (I've tested with a dual-monitor
configuration on Windows.)

So, the question is whether n.p.no_hack=true shouldn't be the default and
whether the original "popup hack" shouldn't be removed completely. I found bug
#38375 where David suggested exactly this long time ago. At that time, Tim
discovered that removing the hack caused some menu repaint problems on Mac (and
heavy-weight menus in general). My testing on Mac with no_hack=true didn't show
any problems. I think we should revisit this issue and get rid of the "popup
hack" if possible in 4.1.

Does anyone see any reasons why not to do it? Does the problem with heavy-weight
menus that Tim described in 3.6 still exist? I wasn't able to reproduce it.
Could there be any issues on Linux?
Comment 1 Milos Kleint 2005-07-21 09:13:57 UTC
done, removed all popup hacks.