<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Luminis Software Development &#187; dnd</title>
	<atom:link href="http://lsd.luminis.eu/en/tag/dnd/feed/" rel="self" type="application/rss+xml" />
	<link>http://lsd.luminis.eu</link>
	<description></description>
	<lastBuildDate>Wed, 28 Dec 2011 20:44:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Drag and drop feedback</title>
		<link>http://lsd.luminis.eu/en/drag-and-drop-feedback/</link>
		<comments>http://lsd.luminis.eu/en/drag-and-drop-feedback/#comments</comments>
		<pubDate>Sat, 30 Jun 2007 12:45:01 +0000</pubDate>
		<dc:creator>Marcel Offermans</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dnd]]></category>
		<category><![CDATA[drag and drop]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[swing]]></category>

		<guid isPermaLink="false">http://lsd.luminis.net/?p=149</guid>
		<description><![CDATA[<img class="thumbnail" src="http://blog.luminis.nl/luminis/resource/marrs/dnd-mm.png" alt="Drag and drop, as easy as Maniac Mansion?" />

When using drag and drop in applications, finding the drop zones has always been somewhat like a graphics adventure. This is an attempt to provide the user with better feedback.]]></description>
			<content:encoded><![CDATA[<p>Ever since applications started to use drag and drop, I have been puzzled by the lack of feedback they provide for actually figuring out where you can drop the things you&#8217;ve picked up. Time and again, this reminds me of the first graphics adventures, like Maniac Mansion, where you spent hours hovering your cursor over images on the screen in an attempt to find these magic zones that actually did something. Adventures have since moved on to more advanced puzzles, but it&#8217;s amazing to see in &#8217;serious&#8217; applications, the drag and drop behaviour has not improved much.</p>
<p>That lead me to come up with a prototype of a drag and drop application that provides you with feedback about where you can drop your items as soon as you start dragging them. This way, you don&#8217;t need to hover your mouse over all elements to see if the mouse shape changes. Instead, using the timing framework, drop zones are animated onto the glass pane to indicate where you can drop the object.</p>
<p><img src="http://blog.luminis.nl/luminis/resource/marrs/dnd-screen.png" align="center" alt="Screenshot of the feedback in action" /></p>
<p>Technically, this is done by iterating over the content of a window hierarchically. As soon as a zone is identified that is a drop zone, it is marked as such. When all zones have been discovered, they are all highlighted, in this example with a simple rectangle, but you could enhance the example to create effects similar to Apple&#8217;s Exposé.</p>
<p>The application was developed for Java 6 and includes source code, build files and the necessary library.</p>
<p>Download: <a href="http://blog.luminis.nl/luminis/resource/marrs/swing-dropzones.jar" onClick="javascript: pageTracker._trackPageview('/downloads/swing-dropzones.jar'); ">swing-dropzones.jar</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lsd.luminis.eu/en/drag-and-drop-feedback/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

