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 - Warning while dragging a class above a form designer
Summary: Warning while dragging a class above a form designer
Status: RESOLVED WONTFIX
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-07 12:21 UTC by Petr Dvorak
Modified: 2015-12-09 09:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (11.30 KB, image/png)
2008-08-07 12:22 UTC, Petr Dvorak
Details

Note You need to log in before you can comment on or make changes to this bug.
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.