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 143164

Summary: Warning while dragging a class above a form designer
Product: guibuilder Reporter: Petr Dvorak <joshis>
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: screenshot

Description Petr Dvorak 2008-08-07 12:21:13 UTC
Product Version: NetBeans IDE Dev (Build 200808061401)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13
System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb)

Create a new Java Application with one Java Class (javaclass.java) and one JFrame form. Open the JFrame form's designer.
Try to drag javaclass.java from the Projects view above the form - you will get a warning (see the screenshot). I
believe that warning should be displayed only when you drop the class.

If you drag the class so that you miss the form designer (for example if you drag it above the toolbar), there is no
problem and you can drop the file by the editor tabs in order to open that file.
Comment 1 Petr Dvorak 2008-08-07 12:22:25 UTC
Created attachment 66788 [details]
screenshot
Comment 2 Jan Stola 2008-08-07 14:59:19 UTC
I agree, but lowering priority to P4 because it is IMHO a minor usability problem.
Comment 3 Petr Dvorak 2008-08-07 15:04:03 UTC
I agree with P4 and with the justification for it, but I would like this issue to be fixed one day - if someone uses d&d
frequently for opening files (like me when I am tired:o)), he/she will suffer from this issue...
Comment 4 Tomas Pavek 2015-12-09 09:42:57 UTC
Dragging to form always creates the component instance when entering the form area so the previewed component can be placed in the layout. This works the same way if dragging from palette as well as if dragging a class from project. I don't think we should disable this feature for project view.