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.
Here's how to reproduce it in NetBeans 5.0 beta 2: 1. Create JFrame. 2. Add JTree (this adds JScrollPane as well). 3. Select JScrollPane and click at "viewport" button in properties. 4. Press OK in opened dialog. When dialog is closed, JTree control will not show tree anymore. 5. Now click on the JTree control and you will get exception. See attached screen shots and log. Vadim
Created attachment 28061 [details] Log File
Created attachment 28062 [details] JFrame with JTree
Created attachment 28063 [details] Next step
Created attachment 28064 [details] Exception
Reassigning to "form" for evaluation.
This way the viewport of the scroll pane is accidentally set to null which causes the problems. Perhaps we should not expose 'viewport' property at all - it can't be handled reasonably as a property becasue it affects the component/container hierarchy. I don't think changing viewport of JScrollPane is a common task done in GUI builder - if you really need it, set it e.g. via user code (post-creation code).
*** This issue has been marked as a duplicate of 70555 ***