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.
Created attachment 111904 [details] Project that exhibits the error. 1) Open attached project. 2) Grab jScrollPane2 left side handle and expand vertically to the right. 3) Keep pulling out past right side of jPanel2 and jFrame. Notice that jPanel2 snap-to guide lines will appear outside of jFrame in space and allow jScrollPane2 to snap to outer space. See attached screenshot. Expected results: jPanel2 snap-to guides should be inside jPanel2, not in outer space. Product Version: NetBeans IDE Dev (Build 201110110600) Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Created attachment 111905 [details] Screenshot of action.
Correction for step #2: Grab jScrollPane2 right side handle...
Created attachment 111906 [details] Another Screenshot See this screenshot. It shows jLabel1 extends outside of jFrame. The Snap-to guides in outer space are actually jLabel2 and not jPanel2. JPanel2 Snap-to guides are missing.
It is hard for me to tell what snap-to guides they are. They still could be jPanel2 snap-to guides.
There is nothing incorrect in this case. It is just the layout of the attached form that is built in that unfortunate way. jPanel2 is too small for its layout to fit in. Some parts of its layout extend behind its visible bounds (for example, jLabel1 has fixed width larger than the width of jPanel2) and jSrollPane2 snaps to them. Note that it is very unfortunate that jPanel2 is non-resizable in horizontal direction and has fixed/hard-coded (=non-default) width.
Note that non-resizable panel with fixed explicit size must have been set manually, e.g. by resizing it below its minimum size or setting the horizontal size property. To fix it just set the property back to default, the panel will grow to necessary minimum size to accommodate all components.