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 190431 - Create Trivial JPanelA extends JPanel. Install in Palette Manager. Drag the new component from palette into trivial JApplet in Matisse Workspace. All hell breaks loose in Matisse, JApplet covered with error stack.
Summary: Create Trivial JPanelA extends JPanel. Install in Palette Manager. Drag the n...
Status: RESOLVED INVALID
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2010-09-18 04:32 UTC by lvwarren
Modified: 2011-11-16 16:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Minimal case to reproduce bug. (19.32 KB, text/plain)
2010-09-18 04:41 UTC, lvwarren
Details
Example JPanelA (409 bytes, application/octet-stream)
2010-09-18 04:52 UTC, lvwarren
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lvwarren 2010-09-18 04:32:28 UTC
Product Version = NetBeans IDE 6.9.1 (Build 201007282301)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_10
Runtime = Java HotSpot(TM) Client VM 11.0-b15
Comment 1 lvwarren 2010-09-18 04:41:11 UTC
Created attachment 102066 [details]
Minimal case to reproduce bug.

to reproduce the bug:
0) download the text file.
1) change the suffix from .txt to .zip
2) unpack the zip folder which is a Netbeans 6.9.1 project.
3) open the attached Java project in Netbeans 6.9.1.
4) build the project.
5) add JPanelA component to the Swing Palette using the Palette Manager.
6) drag an instance from the palette into the JApplet in Matisse GUI builder.

Note, there is already an instance in the JApplet to show the verbiage that the bug throws. You can delete the existing JPanel and the bug will go away.
Comment 2 lvwarren 2010-09-18 04:52:19 UTC
Created attachment 102067 [details]
Example JPanelA

drag this extended JPanel into a trivial JApplet in Matisse and it will demonstrate the bug.

install the JPanelA into the Palette using the Palette Manager.
Comment 3 lvwarren 2010-09-18 04:57:12 UTC
First attachment is the zipped Netbeans project. If it doesn't unzip, you can recreate the bug from the java file in the second attachment. But you will have to:
a) create trivial Netbeans Java Library Project 
b) add a JApplet
c) compile the project with the JPanelA
d) load the JPanelA into the Palette Manager
e) drag an instance of the JPanelA
   from the Palette Manager to the JApplet in Matisee.
Comment 4 Jan Stola 2010-10-15 09:21:12 UTC
I am sorry, I am not able to reproduce this issue. The mentioned steps work correctly on my machine. Could you, please, provide more details? Can you provide the stack-trace of the exception being thrown? Does this happen for other custom components (or just JPanel subclasses)? Does this happen for forms that extend JApplet only or for other forms (like JFrames, JPanels) as well?
Comment 5 Jan Stola 2010-10-18 08:26:44 UTC
It turned out that the problems were caused by a bug in the custom component used by the reporter. The custom component threw NPE from its paintComponent() method.