Drag And Drop (From Palette Or Explorer)

Stan Aubrecht, NetBeans engineer and king of drag and drop, sent me a cool sample recently. When you install it, you see the following:

Note: Here, you can drag items either from the palette or from a node in an explorer view, such as in the Projects window. The palette's DragAndDropHandler isn't used, so that the drag functionality is not limited to the palette. This means that, in your own implementation, you could exclude the palette completely and only provide drag and drop from nodes in the explorer view. Cool, right?

If you're interested in this sample, and if you're using NetBeans IDE 5.5 Beta 2, download the sample here:

org-netbeans-modules-draganddropsample.nbm

When you install it in the IDE, you will see it in the Samples section of the New Project wizard:

Happy dragging and happy dropping!

In other news. Check out Aladejebi Ayodeji's cool report on the recently held Sun Developer Day in Lagos, Nigeria! Sounds like Sang and Angela and others had a very successful time there.

Comments:

first, I tried downloading the zip files, i installed the plug-in but i couldn't find it in the samples. how can use it although it says that it was successfully installed?
second, i'm mainly interested in that plug-in, because i'm interested in dragndrop components and generate code out of that. what i actually want to do is to generate xml code representing the dropped components, not as a multiview thing but as come hidden code. I tried find tutorials for that but i couldnt can u post some on the blog or the netbeans site, or give some guidance about that.

Posted by Youmna on August 07, 2007 at 10:37 PM PDT #

Here: http://blogs.sun.com/geertjan/date/20070604

Posted by Geertjan on August 07, 2007 at 10:41 PM PDT #

I downloaded it but there is a problem in the dependencies it says that the plug-in cannot match its dependencies:
module org.netbeans.modules.projectuiapi/1 > 1.24.0.6 UI Utilities API [module org.openide.awt > 6.11.0.1] Dialogs API [module org.openide.dialogs > 7.4]
i'm using netbeans 6.0 is there a way to solve that?

Posted by Youmna on August 08, 2007 at 05:07 AM PDT #

NetBeans 6.0 does not exist yet. You must have some milestone build or a daily one. Get a later one and it should work.

Posted by Geertjan on August 08, 2007 at 05:09 AM PDT #

I've milestone 9, I guess I should get 10, is there a way to upgrade or i should redownload the IDE?

Posted by Youmna on August 08, 2007 at 05:16 AM PDT #

Download the new one. If the problem continues, get a daily build instead, from the same site.

Posted by Geertjan on August 08, 2007 at 05:19 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today