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 240221 - Unable to group property sets into tabs when the property sheet view is used with OptionsPanelController
Summary: Unable to group property sets into tabs when the property sheet view is used ...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Property Sheet (show other bugs)
Version: 7.4
Hardware: PC All
: P3 normal with 1 vote (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-10 14:22 UTC by gouessej
Modified: 2014-01-20 16:33 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test case to reproduce this bug (4.50 MB, application/zip)
2014-01-10 15:01 UTC, gouessej
Details
screen capture (73.61 KB, image/png)
2014-01-10 15:08 UTC, gouessej
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gouessej 2014-01-10 14:22:48 UTC
There is a complementary unwanted effect when I group property sets into tabs if the property sheet view is in a panel managed by an OptionsPanelController, the scroll pane is continuously horizontally growing. I have tried 2 documented methods to do that:
- netbeans.ps.forcetabs: http://bits.netbeans.org/dev/javadoc/org-openide-explorer/org/openide/explorer/doc-files/propertySheetReference.html
- Sheet.Set.setValue("tabName", "my group"): https://platform.netbeans.org/tutorials/nbm-nodesapi2.html#separate-property-groups

The example of the tutorial above works (but the property sheet view is NOT in the panel managed by an OptionsPanelController).

I'm going to try to reproduce the bug by modifying this example.
Comment 1 gouessej 2014-01-10 15:01:41 UTC
Created attachment 143799 [details]
Test case to reproduce this bug

Test case to reproduce this bug. Run the project "Event Manager", then go to "Tools" -> "Options"
Comment 2 gouessej 2014-01-10 15:08:33 UTC
Created attachment 143800 [details]
screen capture

The screen capture shows the rudimentary example that allows to reproduce this bug, I don't even add any property, I just add 3 (empty) property sets into the property sheet view. You can see the huge horizontal scroll bar at the bottom of the options dialog.
Comment 3 Stanislav Aubrecht 2014-01-13 11:18:53 UTC
core-main cc6a993f8bcf

Btw, you don't need to wait for this fix, just add view.setPreferredSize(new Dimension(100,100)); before using the PropertySheetView
Comment 4 Quality Engineering 2014-01-16 02:43:09 UTC
Integrated into 'main-silver', will be available in build *201401160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/cc6a993f8bcf
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #240221 - PropetySheetView in a JScrollPane grows indefinitely
Comment 5 gouessej 2014-01-20 16:33:43 UTC
Thank you very much for the quick replies.