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 213660 - Warning gets displayed twice when dragging a component that cannot be instantiated onto a form
Summary: Warning gets displayed twice when dragging a component that cannot be instant...
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-06 09:42 UTC by mienamoo
Modified: 2012-11-15 06:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot showing the dragged icon still being displayed (25.69 KB, image/png)
2012-06-06 09:42 UTC, mienamoo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mienamoo 2012-06-06 09:42:52 UTC
Created attachment 120417 [details]
Screenshot showing the dragged icon still being displayed

NetBeans build 201206050001
JDK 7u3 32-bit

Steps to reproduce:

1. Create a new standalone NetBeans platform module, with one TopComponent and one JPanel form.
2. In the constructor of the JPanel form, throw an exception.
3. Compile the module.
4. Open the TopComponent in the GUI builder.
5. Drag the (now misbehaving) JPanel onto the TopComponent in design view.
6. The warning "The component cannot be instantiated. Please make sure it is a JavaBeans component." is display as expected. However, the component that was being dragged is still displayed (see attached screenshot with annotation) when OK is clicked to dismiss the warning.
7. Now click on the TopComponent in the design view, and the warning message is displayed a second time. Then the icon disappears.
Comment 1 Tomas Pavek 2012-11-09 17:05:00 UTC
This was fixed as part of:
http://hg.netbeans.org/jet-main/rev/b23836f97c6f
Comment 2 mienamoo 2012-11-15 06:41:07 UTC
Verified with build 201211140001.

Thanks a lot for the improvements to this dialog - it is really very useful now!