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 251441

Summary: On Aqua, sub-tabs in "Output" tab have vertically off-center text and close buttons
Product: platform Reporter: ebakke
Component: Window SystemAssignee: Stanislav Aubrecht <saubrecht>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 8.0.2   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Attachments: Current screenshot and mockup of proposed adjustment
Proposed patch
Screenshot before and after the proposed patch

Description ebakke 2015-03-26 15:24:30 UTC
Created attachment 152862 [details]
Current screenshot and mockup of proposed adjustment

On MacOS/Aqua, the text and close ("X") buttons of sub-tabs in the "Output" TopComponentm such as "Debugger Console" and "Run", are vertically off-center.

I suggest pushing the text down 1 pixel and the "X" buttons down 2 pixels in such components.

The attached image shows both the current appearance and a mockup of the new appearance as would result from the proposed adjustments.
Comment 1 ebakke 2016-10-26 01:40:06 UTC
Created attachment 162640 [details]
Proposed patch

Proposed patch. Tested on MacOS 10.9.5 (see screenshot, which I will attach next).

Note that the methods setPressedCloseButtonIndex and setMouseOverCloseButtonIndex in CloseButtonTabbedPane are mutually recursive but are not actually called from any other location in the source. They can thus be removed, along with several related helper functions:

org.netbeans.core.windows.view.ui.CloseButtonTabbedPane
  .setPressedCloseButtonIndex
  .setMouseOverCloseButtonIndex
  .getCloseButtonBoundsAt
  .findTabAt
  .isWindowsVistaLaF
  .isMetalLaF
  .isGTKLaF
  .pressedCloseButtonIndex
  .mouseOverCloseButtonIndex
Comment 2 ebakke 2016-10-26 01:41:17 UTC
Created attachment 162641 [details]
Screenshot before and after the proposed patch

Screenshot of the "Search Results" tabs before and after the proposed patch previously submitted.
Comment 3 ebakke 2018-04-22 19:12:45 UTC
Created a JIRA issue for this: https://issues.apache.org/jira/browse/NETBEANS-712