NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Dimas Yusuf Danurwenda Posted via mailing list.
|
Posted: Fri Apr 06, 2012 6:32 pm Post subject: [platform-dev] Droppable palette |
|
|
Hello again.
I created a module that provide a children for project's Node in project explorer. This node children will contain images file, let say .jpg and .png files. On the other hand, I love to use this feature when adding files to Java package node on Project's explorer : select the files' icon from your OS's explorer and then drag it to the package node.
1. How can I filter the dropped object, such that it will create new DataObject and FileObject only for images file? A simple answer may sounds like "look at the file extension", but I have no idea where to implement that answer
I read this http://platform.netbeans.org/tutorials/nbm-visual_library.html and this palette concept is really a must-have for my app.
2. Done filtering objects as I mentioned in (1) above, I want these images to be added directly to palette. Is it possible? (to simplify, there'll be only one Category in the palette)
3. Here comes the subject : I wonder if it's possible for user to drag image files' icon from the OS's explorer, drop it on the palette, and it triggers the step (1) and (2) above?
I appreciate any suggestion. Thanks before
--
Dimas Yusuf Danurwenda |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|