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.
There should be a mode for class containers that auto-resizes to fit their current contents rather than just an explicit "resize now" action.