So, here you can take any word from the palette and drop it on any word in the window. When you do this, the word from the palette replaces the word in the window. You can also take any word in the window and drag it to the palette, within one of the existing categories.
And today I received a new sample (from Stan Aubrecht, the same NetBeans engineer who developed the sample above) which will probably form the basis of a new tutorial. Here's what it looks like:
You can drag a Simpsons character from the palette and drop it in the window. Then you can drag the character again, within the window. This is the same concept as the one shown in the "Organigram Generator" and elsewhere in recent discussions in this blog.
If you're new to all of this drag and drop (or, as drag-and-droppers in the know call it, "DnD") stuff, here's a great spot in the Java tutorial where you can get started learning all the terminology. Ask yourself, for example, if you know what a "transferable" is. And a "TransferHandler". And a "DataFlavor". If you answered "Dunno, man, and you're stressing me out with these questions" to any of these terms (or frowned even slightly), have a look here before even thinking about downloading the samples:
Then, if you're using NetBeans IDE 5.0, here are the samples:
And, rebuilt for NetBeans IDE 5.5 dev build (from a few days ago, so buyer beware), here are the samples:
I would appreciate feedback on the above samples, especially the Simpsons one (which, in the tutorial, will not have the Simpsons characters, so don't worry, legal eagles). Would be good to know how useful and complete it is to you, before working on the tutorial. Meantime, happy drag and dropping!