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 241112 - Visual gap between tabbed sub-window border and its content
Summary: Visual gap between tabbed sub-window border and its content
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 8.0
Hardware: PC All
: P4 normal with 1 vote (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-29 12:23 UTC by kalwi
Modified: 2014-06-16 21:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshots with the gap (293.92 KB, application/zip)
2014-01-29 12:23 UTC, kalwi
Details
.npss file attached from NetBeans (85.00 KB, application/x-npss)
2014-02-08 22:31 UTC, kalwi
Details
New screenshots (621.26 KB, application/x-zip-compressed)
2014-02-08 23:31 UTC, kalwi
Details
XML check output window (103.98 KB, image/png)
2014-04-11 09:21 UTC, kalwi
Details
Reproduced on Kubuntu (94.70 KB, image/png)
2014-05-04 11:27 UTC, kalwi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kalwi 2014-01-29 12:23:04 UTC
Created attachment 144529 [details]
Screenshots with the gap

I sometimes get a gap in tabbed sub-window between the window border and its content, see the attached screenshot step-2.png. It's usually in Output window of a Maven project when I run tests and click on details of failed tests.

I use windows minimized by default - they appear only when needed or when I click on the icon of the minimized window.


I didn't find a certain way how to surely reproduce it every time. My usual steps are similar to the following:
1) Run unit tests which will fail and which show the link to failed tests detail in the log (see step-1.png).
2) When the tests fail, the Output window appears (or I click on the icon).
3) Resize the Output window.
4) Click on the link with tests details.
5) Sometimes the gap appears at this step (step-2.png).
6) Sometimes the gap appears when I close the Output window by clicking to the main window (code editor) and then re-open the Output window.

It's somehow related to resizing of the Output window and refreshing of its content. The gap disappears when I resize the output window.

The bug is present for a quite long time since some of pre-7.4 dev. builds.


Product Version: NetBeans IDE Dev (Build 201401280001)
Java: 1.7.0_51; Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Runtime: Java(TM) SE Runtime Environment 1.7.0_51-b13
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 1 Jaroslav Havlin 2014-01-30 13:46:44 UTC
Thank you very much for screenshots and description of the problem.
Unfortunately, I have never seen this bug, and I haven't been able to reproduce it following the steps to reproduce.

It seems to be some bug in Swing layouts, maybe specific to Metal Look & Feel.

I cannot find anything suspicious in the source code of Output Window TopComponent or in Output Window tabs.
I'm setting issue priority to P4. If I see this bug in running NetBeans, I'll take heap dump, attach debugger and try to investigate the bug.
Comment 2 kalwi 2014-02-08 22:31:51 UTC
Created attachment 144952 [details]
.npss file attached from NetBeans

.npss file
Comment 3 kalwi 2014-02-08 23:31:18 UTC
Created attachment 144953 [details]
New screenshots

I've just find a way how to reproduce it each time on another NetBeans installation on another computer and with a different Maven project. I'm attaching new screenshots.

1) Run a failing test and then open the Output window containing the log (see step-1.png).
2) Click on the link in the log with test details, it opens details in the new tab (step-2.png).
3) Resize (make bigger) the Output window (step-3.png).
4) Click on the link in the stack trace which points to the place where the test failed, Output window is automatically minimized and the Editor is focused (step-4.png).
5) Click on the Output window icon at the bottom bar with minimized windows, the Output window appears and the gap is there (step-5.png).

In step 3, it's important to resize the window sufficiently, otherwise the gap won't appear. I reproduced the gap also by repeating steps 3 - 5 if the first resizing was not enough large.

I've also attached the IDE snapshot if this somehow helps.

Specifics of my NetBeans GUI configuration (on my both NetBeans installations):
- 'Windows' L&F on Windows 8.1, but my first try when I reported the bug was with 'Windows Classic' L&F on Windows 7.
- A lot of windows minimized (including Output window).
- Output window is in a different windows group (it helps me to have the Output window icon always on the very right place on the bar).


Product Version: NetBeans IDE 8.0 Beta (Build 201401141042)
Java: 1.7.0_51; Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Runtime: Java(TM) SE Runtime Environment 1.7.0_51-b13
System: Windows 8 version 6.2 running on amd64; Cp1250; cs_CZ (nb)

PS: The About window shows 'Windows 8 version 6.2', but in fact I have 'Windows 8.1 version 6.3'. It's not relevant to this bug, just interesting :-)
Comment 4 kalwi 2014-04-11 09:20:31 UTC
The bug is reproducible in a similar way also in XML checker output window without any tabs (see the screenshot).

Precondition (the same as above): Output window minimized to the (bottom) toolbar.

1) Open an invalid XML file.
2) Click on "Validate XML", the output window with the validation error appears.
3) Click on the validation error link, the output window is minimized, editor is focused.
4) Open the output window by clicking on its icon on the toolbar.
5) Output window again appears and the gap is there.

Product Version: NetBeans IDE Dev (Build 201404110001)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 5 kalwi 2014-04-11 09:21:14 UTC
Created attachment 146694 [details]
XML check output window
Comment 6 kalwi 2014-05-04 11:27:12 UTC
Created attachment 147094 [details]
Reproduced on Kubuntu

Reproduced also on Kubuntu 14.04 LTS with OpenJDK 1.7u55 x64, fresh NetBeans 8.0 Patch 1 installation and default Maven/Java application project with corrupted POM XML file used for reproducing the bug by XML validation button.

Product Version: NetBeans IDE 8.0 (Build 201403101706)
Updates: NetBeans IDE is updated to version NetBeans 8.0 Patch 1
Java: 1.7.0_55; OpenJDK 64-Bit Server VM 24.51-b03
Runtime: OpenJDK Runtime Environment 1.7.0_55-b14
System: Linux version 3.13.0-24-generic running on amd64; UTF-8; cs_CZ (nb)
User directory: /home/kalwi/.netbeans/8.0
Cache directory: /home/kalwi/.cache/netbeans/8.0
Comment 7 Jaroslav Havlin 2014-06-06 08:38:38 UTC
> The bug is reproducible in a similar way also in XML checker output window
> without any tabs (see the screenshot).
I was able to reproduce the bug by following these steps.

Fixed in http://hg.netbeans.org/core-main/rev/c272e7ec6065.
It should work fine now, please verify.

Thank you very much for exhaustive information and perfect steps to reproduce. Great job!
Comment 8 kalwi 2014-06-16 21:08:56 UTC
Tested with the latest dev. build, the fix works great. Thanks for fixing!