X

Geertjan's Blog

  • August 6, 2006

Drag And Drop (From Palette Or Explorer)

Geertjan Wielenga
Product Manager
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.

Join the discussion

Comments ( 6 )
  • Youmna Wednesday, August 8, 2007

    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.


  • Geertjan Wednesday, August 8, 2007
  • Youmna Wednesday, August 8, 2007

    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?


  • Geertjan Wednesday, August 8, 2007

    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.


  • Youmna Wednesday, August 8, 2007

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


  • Geertjan Wednesday, August 8, 2007

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


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.