<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Kommentare zu Daniel's Weblog</title>
	<atom:link href="http://danielrohe.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://danielrohe.wordpress.com</link>
	<description>My little world.</description>
	<lastBuildDate>Thu, 17 Sep 2009 17:46:35 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Kommentare von danielrohe zu Swing Application on OSGI</title>
		<link>http://danielrohe.wordpress.com/2009/04/01/swing-application-on-osgi/#comment-28</link>
		<dc:creator>danielrohe</dc:creator>
		<pubDate>Thu, 17 Sep 2009 17:46:35 +0000</pubDate>
		<guid isPermaLink="false">http://danielrohe.wordpress.com/?p=132#comment-28</guid>
		<description>The projects name is daro and it is released at sourceforge under http://daro.sourceforge.net/. There is currently no release but you can use the source code and build it by your own. The project contains two streams one is using OSGI and the other is using the ServiceLoader which is part of JDK 6.</description>
		<content:encoded><![CDATA[<p>The projects name is daro and it is released at sourceforge under <a href="http://daro.sourceforge.net/" rel="nofollow">http://daro.sourceforge.net/</a>. There is currently no release but you can use the source code and build it by your own. The project contains two streams one is using OSGI and the other is using the ServiceLoader which is part of JDK 6.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentare von Plugable Swing &#8211; A Hello World OSGi Example &#171; Find Time for Java and more! zu Swing Application on OSGI</title>
		<link>http://danielrohe.wordpress.com/2009/04/01/swing-application-on-osgi/#comment-27</link>
		<dc:creator>Plugable Swing &#8211; A Hello World OSGi Example &#171; Find Time for Java and more!</dc:creator>
		<pubDate>Wed, 16 Sep 2009 21:12:56 +0000</pubDate>
		<guid isPermaLink="false">http://danielrohe.wordpress.com/?p=132#comment-27</guid>
		<description>[...] http://danielrohe.wordpress.com/2009/04/01/swing-application-on-osgi/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://danielrohe.wordpress.com/2009/04/01/swing-application-on-osgi/" rel="nofollow">http://danielrohe.wordpress.com/2009/04/01/swing-application-on-osgi/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentare von karussell zu Swing Application on OSGI</title>
		<link>http://danielrohe.wordpress.com/2009/04/01/swing-application-on-osgi/#comment-26</link>
		<dc:creator>karussell</dc:creator>
		<pubDate>Wed, 16 Sep 2009 19:00:23 +0000</pubDate>
		<guid isPermaLink="false">http://danielrohe.wordpress.com/?p=132#comment-26</guid>
		<description>Hi, this is interesting. Where could this application be downloaded on sourceforge (project name)?
Did you use Spring Rich Client for that?</description>
		<content:encoded><![CDATA[<p>Hi, this is interesting. Where could this application be downloaded on sourceforge (project name)?<br />
Did you use Spring Rich Client for that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentare von danielrohe zu Swing Application Shutdown</title>
		<link>http://danielrohe.wordpress.com/2009/05/31/swing-application-shutdown/#comment-23</link>
		<dc:creator>danielrohe</dc:creator>
		<pubDate>Sat, 06 Jun 2009 14:37:23 +0000</pubDate>
		<guid isPermaLink="false">http://danielrohe.wordpress.com/?p=165#comment-23</guid>
		<description>The following code contains an example that tests the closing behavior and uses Log4J to output log messages at interesting locations. 
&lt;code&gt;
/*
 * Copyright 2009 Daniel Rohe
 * 
 * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package net.sf.daro.core;

import java.awt.Dimension;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.SwingUtilities;

import org.apache.log4j.Logger;

/**
 * @author Daniel
 */
public class FrameTester {

	/**
	 * logging support
	 */
	private static Logger log = Logger.getLogger(FrameTester.class);

	private JFrame applicationFrame;

	public FrameTester() {
		super();
	}

	public void startup() {
		log.debug(&quot;startup application&quot;);

		applicationFrame = new JFrame(&quot;FrameTester&quot;);
		applicationFrame.setMinimumSize(new Dimension(320, 280));
		applicationFrame.addWindowListener(new ApplicationFrameListener());

		applicationFrame.setVisible(true);
	}

	public void shutdown() {
		log.debug(&quot;shutdown application&quot;);

		int option = JOptionPane.showConfirmDialog(applicationFrame
				.getRootPane(), &quot;Do you want to exit the application?&quot;,
				&quot;Exit Application&quot;, JOptionPane.YES_NO_OPTION);
		if (option == JOptionPane.YES_OPTION) {
			// if user commits closing the application simply exits without
			// disposing the frame
			applicationFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		} else if (option == JOptionPane.NO_OPTION) {
			// in case user cancels the closing the application disposes the
			// frame and calls windowClosed() which starts the frame again
			applicationFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		} else {
			// if he closes the window we do nothing
			applicationFrame
					.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
		}

	}

	private class ApplicationFrameListener extends WindowAdapter {

		/**
		 * {@inheritDoc}
		 * 
		 * @see java.awt.event.WindowAdapter#windowOpened(java.awt.event.WindowEvent)
		 */
		@Override
		public void windowOpened(WindowEvent e) {
			log.debug(&quot;application frame - window opened&quot;);
		}

		/**
		 * {@inheritDoc}
		 * 
		 * @see WindowAdapter#windowClosing(WindowEvent)
		 */
		@Override
		public void windowClosing(WindowEvent e) {
			log.debug(&quot;application frame - window closing&quot;);

			shutdown();
		}

		/**
		 * {@inheritDoc}
		 * 
		 * @see WindowAdapter#windowClosed(WindowEvent)
		 */
		@Override
		public void windowClosed(WindowEvent e) {
			log.debug(&quot;application frame - window closed&quot;);

			startup();
		}

	}

	public static void main(String[] args) throws Exception {
		final Class applicationClass = FrameTester.class;
		if (SwingUtilities.isEventDispatchThread()) {
			FrameTester application = applicationClass.newInstance();
			application.startup();
		} else {
			SwingUtilities.invokeAndWait(new Runnable() {
				@Override
				public void run() {
					try {
						FrameTester application = applicationClass
								.newInstance();
						application.startup();
					} catch (Exception e) {
						throw new RuntimeException(e);
					}
				}
			});
		}
	}
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>The following code contains an example that tests the closing behavior and uses Log4J to output log messages at interesting locations.<br />
<code><br />
/*<br />
 * Copyright 2009 Daniel Rohe<br />
 *<br />
 * Licensed under the Apache License, Version 2.0 (the "License");<br />
 * you may not use this file except in compliance with the License.<br />
 * You may obtain a copy of the License at<br />
 *<br />
 *     <a href="http://www.apache.org/licenses/LICENSE-2.0" rel="nofollow">http://www.apache.org/licenses/LICENSE-2.0</a><br />
 *<br />
 * Unless required by applicable law or agreed to in writing, software<br />
 * distributed under the License is distributed on an "AS IS" BASIS,<br />
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br />
 * See the License for the specific language governing permissions and<br />
 * limitations under the License.<br />
 */<br />
package net.sf.daro.core;</p>
<p>import java.awt.Dimension;<br />
import java.awt.event.WindowAdapter;<br />
import java.awt.event.WindowEvent;</p>
<p>import javax.swing.JFrame;<br />
import javax.swing.JOptionPane;<br />
import javax.swing.SwingUtilities;</p>
<p>import org.apache.log4j.Logger;</p>
<p>/**<br />
 * @author Daniel<br />
 */<br />
public class FrameTester {</p>
<p>	/**<br />
	 * logging support<br />
	 */<br />
	private static Logger log = Logger.getLogger(FrameTester.class);</p>
<p>	private JFrame applicationFrame;</p>
<p>	public FrameTester() {<br />
		super();<br />
	}</p>
<p>	public void startup() {<br />
		log.debug("startup application");</p>
<p>		applicationFrame = new JFrame("FrameTester");<br />
		applicationFrame.setMinimumSize(new Dimension(320, 280));<br />
		applicationFrame.addWindowListener(new ApplicationFrameListener());</p>
<p>		applicationFrame.setVisible(true);<br />
	}</p>
<p>	public void shutdown() {<br />
		log.debug("shutdown application");</p>
<p>		int option = JOptionPane.showConfirmDialog(applicationFrame<br />
				.getRootPane(), "Do you want to exit the application?",<br />
				"Exit Application", JOptionPane.YES_NO_OPTION);<br />
		if (option == JOptionPane.YES_OPTION) {<br />
			// if user commits closing the application simply exits without<br />
			// disposing the frame<br />
			applicationFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);<br />
		} else if (option == JOptionPane.NO_OPTION) {<br />
			// in case user cancels the closing the application disposes the<br />
			// frame and calls windowClosed() which starts the frame again<br />
			applicationFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);<br />
		} else {<br />
			// if he closes the window we do nothing<br />
			applicationFrame<br />
					.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);<br />
		}</p>
<p>	}</p>
<p>	private class ApplicationFrameListener extends WindowAdapter {</p>
<p>		/**<br />
		 * {@inheritDoc}<br />
		 *<br />
		 * @see java.awt.event.WindowAdapter#windowOpened(java.awt.event.WindowEvent)<br />
		 */<br />
		@Override<br />
		public void windowOpened(WindowEvent e) {<br />
			log.debug("application frame - window opened");<br />
		}</p>
<p>		/**<br />
		 * {@inheritDoc}<br />
		 *<br />
		 * @see WindowAdapter#windowClosing(WindowEvent)<br />
		 */<br />
		@Override<br />
		public void windowClosing(WindowEvent e) {<br />
			log.debug("application frame - window closing");</p>
<p>			shutdown();<br />
		}</p>
<p>		/**<br />
		 * {@inheritDoc}<br />
		 *<br />
		 * @see WindowAdapter#windowClosed(WindowEvent)<br />
		 */<br />
		@Override<br />
		public void windowClosed(WindowEvent e) {<br />
			log.debug("application frame - window closed");</p>
<p>			startup();<br />
		}</p>
<p>	}</p>
<p>	public static void main(String[] args) throws Exception {<br />
		final Class applicationClass = FrameTester.class;<br />
		if (SwingUtilities.isEventDispatchThread()) {<br />
			FrameTester application = applicationClass.newInstance();<br />
			application.startup();<br />
		} else {<br />
			SwingUtilities.invokeAndWait(new Runnable() {<br />
				@Override<br />
				public void run() {<br />
					try {<br />
						FrameTester application = applicationClass<br />
								.newInstance();<br />
						application.startup();<br />
					} catch (Exception e) {<br />
						throw new RuntimeException(e);<br />
					}<br />
				}<br />
			});<br />
		}<br />
	}<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentare von Martin Reurings zu Swing Application Shutdown</title>
		<link>http://danielrohe.wordpress.com/2009/05/31/swing-application-shutdown/#comment-22</link>
		<dc:creator>Martin Reurings</dc:creator>
		<pubDate>Sat, 06 Jun 2009 08:43:41 +0000</pubDate>
		<guid isPermaLink="false">http://danielrohe.wordpress.com/?p=165#comment-22</guid>
		<description>Since I hardly ever work with Swing, this was a nice to-the-point introduction, thank you! I suppose a little code-example would&#039;ve been appreciated, but mucking around a bit in my IDE was enough to work it out :)</description>
		<content:encoded><![CDATA[<p>Since I hardly ever work with Swing, this was a nice to-the-point introduction, thank you! I suppose a little code-example would&#8217;ve been appreciated, but mucking around a bit in my IDE was enough to work it out <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentare von Freezing the user interface zu Freezing the user interface</title>
		<link>http://danielrohe.wordpress.com/2008/05/02/freezing-the-user-interface/#comment-2</link>
		<dc:creator>Freezing the user interface</dc:creator>
		<pubDate>Fri, 02 May 2008 02:16:53 +0000</pubDate>
		<guid isPermaLink="false">http://danielrohe.wordpress.com/?p=15#comment-2</guid>
		<description>[...] Program - MySQL - Builder AU wrote an interesting post today onHere&#8217;s a quick excerpt Looking around for a good framework that encapsulates the user interface freeze problem in Swing I found Spin, Foxtrot and the Swing Application Framework’s Task framework. From executing the tests it seems that Spin and Foxtrot both have a problem on the Metal Look&amp;Feel. The pressed button looks pressed as long as the mouse stays over it or doesn’t hit the boundaries and initiate a mouse entered or exited event. This mainly happens because the method blocks inside the actionPerformed unti [...]</description>
		<content:encoded><![CDATA[<p>[...] Program &#8211; MySQL &#8211; Builder AU wrote an interesting post today onHere&#8217;s a quick excerpt Looking around for a good framework that encapsulates the user interface freeze problem in Swing I found Spin, Foxtrot and the Swing Application Framework’s Task framework. From executing the tests it seems that Spin and Foxtrot both have a problem on the Metal Look&#38;Feel. The pressed button looks pressed as long as the mouse stays over it or doesn’t hit the boundaries and initiate a mouse entered or exited event. This mainly happens because the method blocks inside the actionPerformed unti [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
