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.
If I set the horizontal and vertical scrollbar policies to JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS and JScrollPane.VERTICAL_SCROLLBAR_ALWAYS instead of ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS and ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS (custom code), the scrollbars are not shown.
This is as designed - the GUI builder doesn't attempt to evaluate custom user code. The custom code is used at runtime only.