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 71250 - NullPointer when adding JPanel to JTabbedPane
Summary: NullPointer when adding JPanel to JTabbedPane
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 72203 73253 73336 73349 74039 80531 84445 85151 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-10 21:03 UTC by bartvdc
Modified: 2006-09-18 18:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
example (5.52 KB, text/plain)
2006-01-10 21:05 UTC, bartvdc
Details
example form (6.19 KB, text/xml)
2006-01-10 21:05 UTC, bartvdc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bartvdc 2006-01-10 21:03:46 UTC
Using build 200512182030
Create a JFrame, leave the the layout to free design.
Add a JTabbedpane. Right click the tabbedPane in the inspector, add from 
palette - swing  - JPanel. This leads to a nullpointer. It's pasted in the 
textarea in the example. Workaround : add directly from palette to the form.

Bart
Comment 1 bartvdc 2006-01-10 21:05:00 UTC
Created attachment 28341 [details]
example
Comment 2 bartvdc 2006-01-10 21:05:36 UTC
Created attachment 28342 [details]
example form
Comment 3 Marek Grummich 2006-01-11 10:02:28 UTC
It is reproducible in the build 200601101900 (RC1) also. The workaround is easy,
but how difficult would be to fix it for 5.0, Tomasi, Honzo?
Comment 4 Tomas Pavek 2006-01-11 15:00:02 UTC
Fixed in trunk.

The fix is very simple, but I'm not sure if this issue is serious enough to push
the fix to 5.0.

/cvs/form/src/org/netbeans/modules/form/MetaComponentCreator.java
new revision: 1.84; previous revision: 1.83
Comment 5 Marek Grummich 2006-01-19 10:44:43 UTC
Verified.
Comment 6 Tomas Pavek 2006-02-06 09:39:05 UTC
*** Issue 72203 has been marked as a duplicate of this issue. ***
Comment 7 Tomas Pavek 2006-03-08 10:19:53 UTC
*** Issue 73349 has been marked as a duplicate of this issue. ***
Comment 8 Tomas Pavek 2006-03-08 10:20:01 UTC
*** Issue 73253 has been marked as a duplicate of this issue. ***
Comment 9 Tomas Pavek 2006-03-08 10:20:07 UTC
*** Issue 73336 has been marked as a duplicate of this issue. ***
Comment 10 Tomas Pavek 2006-03-08 10:21:11 UTC
Seems this would be a good candidate for 5.5 fixes. What do you think Marek?
Comment 11 Marek Grummich 2006-03-08 10:23:49 UTC
Absolutely agree!
Comment 12 Tomas Pavek 2006-04-26 08:53:57 UTC
Fix integrated into 5.5.
Comment 13 Tomas Pavek 2006-08-11 12:57:15 UTC
*** Issue 74039 has been marked as a duplicate of this issue. ***
Comment 14 Jan Stola 2006-09-07 09:46:38 UTC
*** Issue 80531 has been marked as a duplicate of this issue. ***
Comment 15 Tomas Pavek 2006-09-18 18:17:47 UTC
*** Issue 84445 has been marked as a duplicate of this issue. ***
Comment 16 Tomas Pavek 2006-09-18 18:18:20 UTC
*** Issue 85151 has been marked as a duplicate of this issue. ***