Bug 229599 - Do not interpret click that brings application to foreground
Do not interpret click that brings application to foreground
Status: RESOLVED WONTFIX
Product: platform
Classification: Unclassified
Component: JDK Problems
7.3
PC Mac OS X
: P3 (vote)
: 7.4
Assigned To: Stanislav Aubrecht
issues@platform
http://bugs.sun.com/bugdatabase/view_...
jdk_bug_9005674
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-10 23:05 UTC by peastman
Modified: 2013-08-01 08:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description peastman 2013-05-10 23:05:57 UTC
When Netbeans is in the background and you click in the window to bring it to the foreground, the application should ignore that click.  At least on Macs, this is standard behavior for all applications, and users expect all programs to work that way.  They do not pay attention to where they click in the window, or make any effort to avoid clicking on, for example, a button or close box.  But Netbeans does interpret the click, and the results can be very frustrating.

Even when I remember to be careful, this behavior is just irritating.  I find myself having to think carefully to pick a spot where I can safely click without moving the insertion point.
Comment 1 Stanislav Aubrecht 2013-05-16 10:19:45 UTC
Please provide JDK, OS and NetBeans version info and reopen, thanks.
Comment 2 peastman 2013-05-16 16:59:12 UTC
This has been present in every NetBeans version and every OS version for as long as I've been using it.  Here are the details from the "About NetBeans" window for my current configuration:

Product Version: NetBeans IDE 7.3 (Build 201302132200)
Java: 1.6.0_45; Java HotSpot(TM) 64-Bit Server VM 20.45-b01-451
Runtime: Java(TM) SE Runtime Environment 1.6.0_45-b06-451-11M4406
System: Mac OS X version 10.8.3 running on x86_64; MacRoman; en_US (nb)
Comment 3 Stanislav Aubrecht 2013-05-17 08:43:59 UTC
Thanks for the info.

Can you reproduce the problem with some other plain Swing application? E.g. some demo application from NetBeans sample projects?
Comment 4 Stanislav Aubrecht 2013-05-20 09:55:15 UTC
It's a problem in JDK implementation as it is reproducible in a plain Swing app (Anagrams demo in NetBeans)
Comment 5 Stanislav Aubrecht 2013-07-31 13:42:16 UTC
I tried clicking into Safari toolbar when other application was in foreground and that click activated the Safari window AND the toolbar button was pressed.

Mac OS X 10.8.4
Comment 6 peastman 2013-07-31 18:44:16 UTC
Apple has specific guidelines about this.  See http://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/AppleHIGuidelines/Windows/Windows.html, specifically the section on "Enabling Click-Through".  The normal behavior in Mac applications is that clicks to background windows are not processed.  Exceptions are supposed to be made only when there's a good reason.  The current behavior in Netbeans violates several of their guidelines.  For example, it allows click through to remove the user from the current context (such as by changing tabs), and it doesn't provide confirmation feedback for much of anything.

More importantly, this is just a bad way for the user interface to work.  It produces irritating, unwanted effects.
Comment 7 Stanislav Aubrecht 2013-08-01 08:53:54 UTC
Reported as JDK bug.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo