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 70788 - Another exception in UI Form Designer
Summary: Another exception in UI Form Designer
Status: RESOLVED DUPLICATE of bug 70555
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-25 07:51 UTC by worndown
Modified: 2006-01-05 15:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log File (27.75 KB, text/plain)
2005-12-25 07:52 UTC, worndown
Details
JFrame with JTree (141.40 KB, image/jpeg)
2005-12-25 07:53 UTC, worndown
Details
Next step (157.00 KB, image/jpeg)
2005-12-25 07:54 UTC, worndown
Details
Exception (158.92 KB, image/jpeg)
2005-12-25 07:55 UTC, worndown
Details

Note You need to log in before you can comment on or make changes to this bug.
Description worndown 2005-12-25 07:51:41 UTC
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
Comment 1 worndown 2005-12-25 07:52:08 UTC
Created attachment 28061 [details]
Log File
Comment 2 worndown 2005-12-25 07:53:48 UTC
Created attachment 28062 [details]
JFrame with JTree
Comment 3 worndown 2005-12-25 07:54:48 UTC
Created attachment 28063 [details]
Next step
Comment 4 worndown 2005-12-25 07:55:15 UTC
Created attachment 28064 [details]
Exception
Comment 5 Peter Pis 2005-12-29 21:12:17 UTC
Reassigning to "form" for evaluation.
Comment 6 Tomas Pavek 2006-01-02 11:45:41 UTC
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).
Comment 7 Tomas Pavek 2006-01-05 15:05:18 UTC

*** This issue has been marked as a duplicate of 70555 ***