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 269309 - Dragging and Dropping Tabs Doesn't Honor TopComponent Visibility
Summary: Dragging and Dropping Tabs Doesn't Honor TopComponent Visibility
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 8.1
Hardware: PC All
: P3 normal with 1 vote (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-12 13:58 UTC by rfromm
Modified: 2016-12-12 13:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
A project to reproduce the error (3.14 MB, application/x-zip-compressed)
2016-12-12 13:58 UTC, rfromm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rfromm 2016-12-12 13:58:37 UTC
Created attachment 163209 [details]
A project to reproduce the error

To reproduce this issue with the attached project:

1) In the Menu Bar, select Window->Test. This will create a new TestTopComponent with 2 buttons in the editor mode.

2) Click jButton2. This will set the visibility of the TestTopComponent to false.

3) Drag the tab of the TestTopComponent to any mode. The visibility of the component will be reset.

A possible solution may be found in org.netbeans.swing.tabcontrol.plaf.StackLayout. Here, a component's visibility is changed under certain conditions. Merely commenting out the lines calling setVisible seems to fix the issue.