<?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>Java User Group Münster &#187; java</title>
	<atom:link href="http://www.jug-muenster.de/tag/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jug-muenster.de</link>
	<description>Java User Group für Münster und das Münsterland</description>
	<lastBuildDate>Sun, 25 Jul 2010 12:26:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>30.7.: Clojure Presentation with Alex Ott</title>
		<link>http://www.jug-muenster.de/30-7-cloure-presentation-with-alex-ott-664/</link>
		<comments>http://www.jug-muenster.de/30-7-cloure-presentation-with-alex-ott-664/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 15:07:59 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
				<category><![CDATA[Termine]]></category>
		<category><![CDATA[events]]></category>
		<category><![CDATA[clojure]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[talk]]></category>

		<guid isPermaLink="false">http://www.jug-muenster.de/?p=664</guid>
		<description><![CDATA[Clojure is a language running on the Java Virtual machine and gaining rapid popularity. Beeing a general-purpose language supporting interactive development that encourages a functional programming style, and simplifying multithreaded programming its usage is particularly promising in high concurrency/throughput environments.Alex Ott will present Clojure in a technical demonstration on Friday, July 30th in Muenster, covering these [...]]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p>Clojure is a language running on the Java Virtual machine and gaining rapid popularity. Beeing a general-purpose language supporting interactive development  that encourages a functional programming style, and simplifying multithreaded programming its usage is particularly promising in high concurrency/throughput environments.<span id="more-664"></span>Alex Ott will present Clojure in a technical demonstration on Friday, July 30th in Muenster, covering these topics:</p>
<ul>
<li>What is Clojure?</li>
<li>Why was the language was created</li>
<li>Language basics</li>
<li>Interoperability with Java</li>
<li>Concurrent programming &#8211; how Clojure simplify concurrent programming</li>
<li>Clojure in real life &#8211; tools, real projects, etc.</li>
<li>Sources of information</li>
<li>Examples &amp; demonstrations</li>
</ul>
<p>Alex Ott is currently working for McAfee Inc. and has profounded experience in development of content filtering and data leakage prevention solutions. He is leader of software development projects in the OpenSource and commercial space and is author of physics and computer science related articles and books.</p>
<p>The Clojure event will be performed at Leonardo Campus 18 (<a href="http://maps.google.de/maps/ms?hl=de&amp;ie=UTF8&amp;msa=0&amp;msid=101577149718090886113.00047414f4d95999f11b7&amp;t=h&amp;ll=51.975397,7.599798&amp;spn=0.002217,0.004469&amp;z=18" target="_blank">Google Maps Link</a>), entry is at 6 PM, start is 6:30 PM. (18:00 Uhr)</p>
<p>Beverages and some snacks will be provided. Follow us on Twitter (<a href="http://twitter.com/jug_ms" target="_blank">JUG_MS</a>) or join our Mailing List to keep up to date!</p>
<div style="clear:both;">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.jug-muenster.de/30-7-cloure-presentation-with-alex-ott-664/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java2D Conical Gradient Paint</title>
		<link>http://www.jug-muenster.de/java2d-conical-gradient-paint-674/</link>
		<comments>http://www.jug-muenster.de/java2d-conical-gradient-paint-674/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 13:28:10 +0000</pubDate>
		<dc:creator>Gerrit</dc:creator>
				<category><![CDATA[Contributed]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[java2d]]></category>
		<category><![CDATA[swing]]></category>

		<guid isPermaLink="false">http://www.jug-muenster.de/?p=674</guid>
		<description><![CDATA[Just a short blogpost about a little tool that i would like to share with you&#8230; A few months ago i was creating a worldclock with a night and day display where i needed a conical gradient. So what is a conical gradient ? Here we go&#8230; You might think &#8220;ok, it looks nice but [...]


Weitere Artikel:<ol><li><a href='http://www.jug-muenster.de/fxg-to-java2d-converter-555/' rel='bookmark' title='Permanent Link: FXG to Java2D converter'>FXG to Java2D converter</a></li>
<li><a href='http://www.jug-muenster.de/swing-worldclock-427/' rel='bookmark' title='Permanent Link: Swing Worldclock'>Swing Worldclock</a></li>
<li><a href='http://www.jug-muenster.de/drawing-in-code-part-2-2-384/' rel='bookmark' title='Permanent Link: Drawing in code (Part 2)'>Drawing in code (Part 2)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p>Just a short blogpost about a little tool that i would like to share with you&#8230;<br />
A few months ago i was creating a worldclock with a night and day display where i needed a conical gradient.<br />
So what is a conical gradient ? Here we go&#8230;<span id="more-674"></span></p>
<p><img style="float: left;" src="http://www.jug-muenster.de/wp-content/uploads/2010/07/ishot-22.png" border="0" alt="ishot-2.png" width="186" height="203" /></p>
<p>You might think &#8220;ok, it looks nice but where is it useful ?&#8221;&#8230;well here are three little examples&#8230;</p>
<blockquote><p><img style="float: left;" src="http://www.jug-muenster.de/wp-content/uploads/2010/07/ishot-41.png" border="0" alt="ishot-4.png" width="138" height="160" /></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="http://www.jug-muenster.de/wp-content/uploads/2010/07/ishot-5.png" border="0" alt="ishot-5.png" width="278" height="276" /></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="http://www.jug-muenster.de/wp-content/uploads/2010/07/ishot-6.png" border="0" alt="ishot-6.png" width="451" height="205" /></p></blockquote>
<p>So if you would like to achieve these results without the conical gradient paint you have to rotate a line a change the color at every angle. This works out but if it comes to large angles you have to decrease the stepsize which leads to artifacts around the rotation center.</p>
<p>So the conical gradient paint is especialy useful when you work with rotationally symetrical stuff. With this kind of gradient you could get more realistic results of circular structures like the two buttons in the image above. On the left side i used a conical gradient and on the right side i used a linear gradient.</p>
<p>For most of the stuff the linear approach will work but the conical gradient gives you a more realistic shading. Things like the stainless steel button is hard to be generated without a gradient like this.</p>
<p>So let me show you some code to give you an idea of how to work with the ConicalGradientPaint:</p>
<p>The syntax is similar to the LinearGradientPaint and RadialGradientPaint where you define a float array that holds all the fractions of the gradient, a color array that holds all the colors for each fraction and a point that defines the rotation center of the gradient.</p>
<p>Additional to that standard parameters i added a indicator for the usage of degrees and a rotation offset.</p>
<p><strong>Usage:</strong></p>
<p>ConicalGradientPaint cgp = new ConicalGradientPaint(USE_DEGREES, CENTER, OFFSET, FRACTIONS, COLORS);</p>
<p>USE_DEGREES = true/false</p>
<p>CENTER = java.awt.geom.Point2D</p>
<p>OFFSET = float (either 0.0f &#8211; 1.0f or 0.0f &#8211; 360.0f)</p>
<p>FRACTIONS = float[] (either values from 0.0f..1.0f or from 0.0f..360.0f)</p>
<p>COLORS = java.awt.Color[]</p>
<pre class="brush:java;">// Code for a simple cone like from black over white to black
final Ellipse2D CONE = new Ellipse2D.Double(0, 0, 150, 150);

final Point2D CONE_CENTER = new Point2D.Double(CONE.getCenterX(), CONE.getCenterY());

final float[] CONE_FRACTIONS =
{
    0.0f,
    0.5f,
    1.0f
};

final java.awt.Color[] CONE_COLORS =
{
    java.awt.Color.BLACK,
    java.awt.Color.WHITE,
    java.awt.Color.BLACK
};

final ConicalGradientPaint CONE_GRADIENT = new ConicalGradientPaint(
	CONE_CENTER,
	CONE_FRACTIONS,
	CONE_COLORS);

G2.setPaint(CONE_GRADIENT);

G2.fill(CONE);</pre>
<p>As you can see it&#8217;s not magic but simple stupid java code and with a little variation in colors and fractions you could achieve effects like the stainless steel button.</p>
<p>In my free time i&#8217;m working on a new component library (mostly gauges) where i also could use the conical gradient paint.</p>
<blockquote><p><img style="float: left;" src="http://www.jug-muenster.de/wp-content/uploads/2010/07/ishot-7.png" border="0" alt="ishot-7.png" width="209" height="215" /></p></blockquote>
<p>In the screenshot you could see that the gauge has a area from 10 to 60 where it has a gradient in the background. This gradient is also filled by the ConicalGradientPaint.</p>
<p>So you see it could be useful to have this kind of gradient available and for that reason i would like to share it with you&#8230;</p>
<p>Here is the source as zipped <a href="http://www.netbeans.org">Netbeans</a> <a title="ConicalGradientPaint.zip" href="http://www.jug-muenster.de/wp-content/uploads/2010/07/ConicalGradientPaint.zip">project</a>. It contains the ConicalGradient class and a little demo that will give you an idea of how to use the paint.</p>
<p>In this project you&#8217;ll also find a compiled jar that you could start and it will show you this</p>
<blockquote><p><img style="float: left;" src="http://www.jug-muenster.de/wp-content/uploads/2010/07/ishot-8.png" border="0" alt="ishot-8.png" width="471" height="450" /></p></blockquote>
<p>So enjoy Swing and follow me on <a href="http://twitter.com/hansolo_">twitter</a> if you like&#8230;</p>
<div style="clear:both;">&nbsp;</div>

<p>Weitere Artikel:<ol><li><a href='http://www.jug-muenster.de/fxg-to-java2d-converter-555/' rel='bookmark' title='Permanent Link: FXG to Java2D converter'>FXG to Java2D converter</a></li>
<li><a href='http://www.jug-muenster.de/swing-worldclock-427/' rel='bookmark' title='Permanent Link: Swing Worldclock'>Swing Worldclock</a></li>
<li><a href='http://www.jug-muenster.de/drawing-in-code-part-2-2-384/' rel='bookmark' title='Permanent Link: Drawing in code (Part 2)'>Drawing in code (Part 2)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jug-muenster.de/java2d-conical-gradient-paint-674/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java Stammtisch: 23.6. ab 18:30 Uhr</title>
		<link>http://www.jug-muenster.de/java-stammtisch-23-6-ab-1830-uhr-612/</link>
		<comments>http://www.jug-muenster.de/java-stammtisch-23-6-ab-1830-uhr-612/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 08:09:27 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
				<category><![CDATA[Termine]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[münster]]></category>
		<category><![CDATA[stammtisch]]></category>

		<guid isPermaLink="false">http://www.jug-muenster.de/?p=612</guid>
		<description><![CDATA[Wir möchten zum nächsten Java Stammtisch in Münster einladen! Herzlich willkommen sind alle an Java und Softwareentwicklung interessierten Personen. (Damit sind auch PHP, Ruby on Rails, .NET und Scala Entwickler gemeint ) In entspannter Atmosphäre gibt es Gelegenheit zum gegenseitigen Austausch, Kennenlernen oder auch Diskussionen beizuwohnen. Hinweis: Wir haben eine neue Mailingliste, wer per E-Mail [...]


Weitere Artikel:<ol><li><a href='http://www.jug-muenster.de/nachster-java-stammtisch-01072009-60/' rel='bookmark' title='Permanent Link: Nächster Java Stammtisch Münster: 01.07.2009'>Nächster Java Stammtisch Münster: 01.07.2009</a></li>
<li><a href='http://www.jug-muenster.de/und-zweiwochentlich-grust-der-duke-java-stammtisch-am-150709-66/' rel='bookmark' title='Permanent Link: Und zweiwöchentlich grüßt der Duke: Java Stammtisch am 15.07.09'>Und zweiwöchentlich grüßt der Duke: Java Stammtisch am 15.07.09</a></li>
<li><a href='http://www.jug-muenster.de/nachster-java-stammtisch-84-1800-uhr-12/' rel='bookmark' title='Permanent Link: Nächster Java Stammtisch: 8.4. 18:00 Uhr'>Nächster Java Stammtisch: 8.4. 18:00 Uhr</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p>Wir möchten zum nächsten Java Stammtisch in Münster einladen! Herzlich willkommen sind alle an Java und Softwareentwicklung interessierten Personen. (Damit sind auch PHP, Ruby on Rails, .NET und Scala Entwickler gemeint <img src='http://www.jug-muenster.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  ) In entspannter Atmosphäre gibt es Gelegenheit zum gegenseitigen Austausch, Kennenlernen oder auch Diskussionen beizuwohnen.</p>
<p>Hinweis: Wir haben eine neue Mailingliste, wer per E-Mail auf dem Laufenden gehalten werden möchte, kann sich mit einer E-Mail an <strong>jug-join@list.jug-muenster.de</strong> eintragen.<span id="more-612"></span></p>
<p>Der Java Stammtisch findet Mittwoch   ab ca. 18:30 Uhr im Cuba Nova statt.  Das Cuba Nova befindets  ich in   der Achtermannstrasse in der Nähe vom  Hauptbahnhof. (3 Minuten  zu Fuß,   wenn man langsam geht.).<img title="Weiterlesen..." src="http://www.jug-muenster.de/wp-includes/js/tinymce/plugins/wordpress/img/trans.gif" alt="" /></p>
<p>Für Teilnehmer am Java Stammtisch gibt es einen Sonderpreis für    Weizen,  zudem gibt es auch Aktionsangbote bei Speisen.<br />
Parkmöglichkeiten und Anfahrt zum Java Usergroup Münster Treff: Parkhaus     Engelenschanze ist am nächsten gelegen. Ansonsten empfehlen wir die     Anreise mit dem Rad oder öffentlichen Verkehrsmitteln &#8211; insbesondere   für   Weizen-Fans. (<a href="http://maps.google.de/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=cuba+nova+m%C3%BCnster&amp;sll=51.151786,10.415039&amp;sspn=17.844126,28.916016&amp;ie=UTF8&amp;ll=51.957893,7.633417&amp;spn=0.002136,0.00353&amp;z=18" target="_blank">Google Maps Link</a>)</p>
<div style="clear:both;">&nbsp;</div>

<p>Weitere Artikel:<ol><li><a href='http://www.jug-muenster.de/nachster-java-stammtisch-01072009-60/' rel='bookmark' title='Permanent Link: Nächster Java Stammtisch Münster: 01.07.2009'>Nächster Java Stammtisch Münster: 01.07.2009</a></li>
<li><a href='http://www.jug-muenster.de/und-zweiwochentlich-grust-der-duke-java-stammtisch-am-150709-66/' rel='bookmark' title='Permanent Link: Und zweiwöchentlich grüßt der Duke: Java Stammtisch am 15.07.09'>Und zweiwöchentlich grüßt der Duke: Java Stammtisch am 15.07.09</a></li>
<li><a href='http://www.jug-muenster.de/nachster-java-stammtisch-84-1800-uhr-12/' rel='bookmark' title='Permanent Link: Nächster Java Stammtisch: 8.4. 18:00 Uhr'>Nächster Java Stammtisch: 8.4. 18:00 Uhr</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jug-muenster.de/java-stammtisch-23-6-ab-1830-uhr-612/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stammtisch: Java Runde am 9.6.</title>
		<link>http://www.jug-muenster.de/stammtisch-java-runde-am-9-6-603/</link>
		<comments>http://www.jug-muenster.de/stammtisch-java-runde-am-9-6-603/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 11:45:22 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
				<category><![CDATA[Termine]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[münster]]></category>
		<category><![CDATA[stammtisch]]></category>

		<guid isPermaLink="false">http://www.jug-muenster.de/?p=603</guid>
		<description><![CDATA[Die Java Usergroup Münster lädt am kommenden Mittwoch zum nächsten Java Stammtisch in Münster ein: Für alle an Java, Softwareentwicklung und aktuellen Trends interessierten Personen &#8211; auch PHP, Ruby on Rails Entwickler sind natürlich willkommen! Der Java Treff findet Mittwoch ab ca. 18:30 Uhr im Cuba Nova statt. Das Cuba Nova befindets ich in der [...]


Weitere Artikel:<ol><li><a href='http://www.jug-muenster.de/nachster-java-stammtisch-01072009-60/' rel='bookmark' title='Permanent Link: Nächster Java Stammtisch Münster: 01.07.2009'>Nächster Java Stammtisch Münster: 01.07.2009</a></li>
<li><a href='http://www.jug-muenster.de/und-zweiwochentlich-grust-der-duke-java-stammtisch-am-150709-66/' rel='bookmark' title='Permanent Link: Und zweiwöchentlich grüßt der Duke: Java Stammtisch am 15.07.09'>Und zweiwöchentlich grüßt der Duke: Java Stammtisch am 15.07.09</a></li>
<li><a href='http://www.jug-muenster.de/java-roundup-meeting-am-23-09-145/' rel='bookmark' title='Permanent Link: Java Roundup Meeting am 23.09.'>Java Roundup Meeting am 23.09.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p>Die Java Usergroup Münster lädt am kommenden Mittwoch zum nächsten Java Stammtisch in Münster ein: Für alle an Java, Softwareentwicklung und aktuellen Trends    interessierten Personen &#8211; auch PHP, Ruby on Rails Entwickler sind    natürlich willkommen!</p>
<p>Der Java Treff findet Mittwoch   ab ca. 18:30 Uhr im Cuba Nova statt. Das Cuba Nova befindets  ich in   der Achtermannstrasse in der Nähe vom Hauptbahnhof. (3 Minuten  zu Fuß,   wenn man langsam geht.).<img title="Weiterlesen..." src="http://www.jug-muenster.de/wp-includes/js/tinymce/plugins/wordpress/img/trans.gif" alt="" /></p>
<p>Für Teilnehmer am Java Stammtisch gibt es einen Sonderpreis für   Weizen,  zudem gibt es auch Aktionsangbote bei Speisen.<br />
Parkmöglichkeiten und Anfahrt zum Java Usergroup Münster Treff: Parkhaus    Engelenschanze ist am nächsten gelegen. Ansonsten empfehlen wir die    Anreise mit dem Rad oder öffentlichen Verkehrsmitteln &#8211; insbesondere  für   Weizen-Fans. (<a href="http://maps.google.de/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=cuba+nova+m%C3%BCnster&amp;sll=51.151786,10.415039&amp;sspn=17.844126,28.916016&amp;ie=UTF8&amp;ll=51.957893,7.633417&amp;spn=0.002136,0.00353&amp;z=18" target="_blank">Google Maps Link</a>)</p>
<div style="clear:both;">&nbsp;</div>

<p>Weitere Artikel:<ol><li><a href='http://www.jug-muenster.de/nachster-java-stammtisch-01072009-60/' rel='bookmark' title='Permanent Link: Nächster Java Stammtisch Münster: 01.07.2009'>Nächster Java Stammtisch Münster: 01.07.2009</a></li>
<li><a href='http://www.jug-muenster.de/und-zweiwochentlich-grust-der-duke-java-stammtisch-am-150709-66/' rel='bookmark' title='Permanent Link: Und zweiwöchentlich grüßt der Duke: Java Stammtisch am 15.07.09'>Und zweiwöchentlich grüßt der Duke: Java Stammtisch am 15.07.09</a></li>
<li><a href='http://www.jug-muenster.de/java-roundup-meeting-am-23-09-145/' rel='bookmark' title='Permanent Link: Java Roundup Meeting am 23.09.'>Java Roundup Meeting am 23.09.</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jug-muenster.de/stammtisch-java-runde-am-9-6-603/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Smack xmpp lib on Android with Netbeans</title>
		<link>http://www.jug-muenster.de/using-smack-xmpp-lib-on-android-with-netbeans-573/</link>
		<comments>http://www.jug-muenster.de/using-smack-xmpp-lib-on-android-with-netbeans-573/#comments</comments>
		<pubDate>Tue, 11 May 2010 04:58:47 +0000</pubDate>
		<dc:creator>Gerrit</dc:creator>
				<category><![CDATA[Contributed]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[xmpp]]></category>

		<guid isPermaLink="false">http://www.jug-muenster.de/?p=573</guid>
		<description><![CDATA[Last week i got my Android phone and finally started coding for a mobile phone (which really is a great experience and lot&#8217;s of fun). During my daylight work i&#8217;m using xmpp in different projects and tools and so i would really like to use it on the Android phone also. In the java world [...]


Weitere Artikel:<ol><li><a href='http://www.jug-muenster.de/android-autoconversion-edittext-component-653/' rel='bookmark' title='Permanent Link: Android AutoConversion EditText component'>Android AutoConversion EditText component</a></li>
<li><a href='http://www.jug-muenster.de/custom-swing-component-227/' rel='bookmark' title='Permanent Link: Custom swing component'>Custom swing component</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p><img style="display: block; margin-left: auto; margin-right: auto;" src="http://www.jug-muenster.de/wp-content/uploads/2010/05/Android_XMPP_Netbeans.png" border="0" alt="Android + XMPP + Netbeans" width="400" height="80" /></p>
<p>Last week i got my Android phone and finally started coding for a mobile phone (which really is a great experience and lot&#8217;s of fun).</p>
<p>During my daylight work i&#8217;m using xmpp in different projects and tools and so i would really like to use it on the Android phone also. In the java world there is a really neat library called smack from <a href="http://www.igniterealtime.org/projects/smack/index.jsp﻿">ignite realtime</a> which makes using xmpp a piece of cake and so i asked myself if it would also run on android?</p>
<p>Yes it does&#8230;<strong>BUT</strong>&#8230;you need a <a title="smack.jar.zip" href="http://www.jug-muenster.de/wp-content/uploads/2010/05/smack.jar_1.zip">patched version</a> that i found on the net&#8230;<br />
In <a href="http://www.eclipse.org/">Eclipse</a> it seems to be easy to link a external library to a android project but in <a href="http://www.netbeans.org/">Netbeans</a> i was not so intuitively as i thought&#8230;<br />
You need three little steps to include a external library like smack and here they are:</p>
<p><strong>#1 STEP:</strong></p>
<p>Create a local folder named &#8220;lib&#8221; in your Android project folder like this:</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="http://www.jug-muenster.de/wp-content/uploads/2010/05/ishot-12.png" border="0" alt="lib folder in project directory" width="480" height="247" /></p>
<p>Now copy the patched <a title="smack.jar.zip" href="http://www.jug-muenster.de/wp-content/uploads/2010/05/smack.jar_1.zip">smack.jar﻿</a> file into this folder.<span id="more-573"></span></p>
<p><strong>#2 STEP:</strong></p>
<p>Add the jar file to your libraries in <a href="http://www.netbeans.org">netbeans</a> like this:</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="http://www.jug-muenster.de/wp-content/uploads/2010/05/ishot-31.png" border="0" alt="add smack.jar to project libraries" width="197" height="162" /></p>
<p><strong>#3 STEP:</strong></p>
<p>At last you have to edit the <strong>build.xml</strong> file of your android project and add the link to the<strong> /lib</strong> folder where you copied the library file.</p>
<p>Add the following to the end of your <strong>build.xml</strong> file:</p>
<p><span style="color: #38ac00;">&lt;!&#8211; Add path to external libs to buildpath &#8211;&gt;</span></p>
<p><span style="color: #0047ff;">&lt;target</span> name=<span style="color: #ff3ffa;">&#8220;-pre-jar&#8221;</span><span style="color: #0047ff;">&gt;</span></p>
<p><span style="color: #0047ff;">&lt;property</span> name=<span style="color: #ff3ffa;">&#8220;external.libs.dir&#8221; value=&#8221;<strong>/PATH_TO_YOUR_PROJECT/lib</strong>&#8220;</span> <span style="color: #0047ff;">/&gt;</span></p>
<p><span style="color: #0047ff;">&lt;copy</span> todir=<span style="color: #ff3ffa;">&#8220;${build.classes.dir}&#8221;</span><span style="color: #0047ff;">&gt;</span></p>
<p><span style="color: #0047ff;">&lt;fileset</span> dir=<span style="color: #ff3ffa;">&#8220;/<strong>PATH_TO_YOUR_PROJECT/lib</strong>&#8221; </span><span style="color: #0047ff;">/&gt;</span></p>
<p><span style="color: #0047ff;">&lt;/copy&gt;</span></p>
<p><span style="color: #0047ff;">&lt;/target&gt;</span>﻿</p>
<p>That&#8217;s it&#8230;</p>
<p>Now you should be able to use the external library in the same way as you know it from your normal desktop machine.<strong><span style="color: #ff1f19;"><br />
Be aware that the patched smack.jar does not contain the complete functionality of the desktop version&#8230;</span></strong><br />
You might also take a look at a project called asmack which you could find <a href="http://code.google.com/p/asmack/">here</a>&#8230;</p>
<div style="clear:both;">&nbsp;</div>

<p>Weitere Artikel:<ol><li><a href='http://www.jug-muenster.de/android-autoconversion-edittext-component-653/' rel='bookmark' title='Permanent Link: Android AutoConversion EditText component'>Android AutoConversion EditText component</a></li>
<li><a href='http://www.jug-muenster.de/custom-swing-component-227/' rel='bookmark' title='Permanent Link: Custom swing component'>Custom swing component</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jug-muenster.de/using-smack-xmpp-lib-on-android-with-netbeans-573/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java Stammtisch Münster: 12.5.</title>
		<link>http://www.jug-muenster.de/java-stammtisch-munster-561/</link>
		<comments>http://www.jug-muenster.de/java-stammtisch-munster-561/#comments</comments>
		<pubDate>Mon, 10 May 2010 07:36:36 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
				<category><![CDATA[Termine]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[münster]]></category>
		<category><![CDATA[stammtisch]]></category>

		<guid isPermaLink="false">http://www.jug-muenster.de/?p=561</guid>
		<description><![CDATA[Kommenden Mittwoch ist es wieder soweit: Der nächste Java Stammtisch findet am  Mittwoch den 12.05. im Cuba Nova statt. Für alle an Java, Softwareentwicklung und aktuellen Trends interessierten Personen &#8211; auch PHP, Ruby on Rails Entwickler sind natürlich willkommen! Der Java Treff für Münster, Osnabrück und Umgebung findet am Mittwoch ab ca. 18:30 Uhr im [...]


Weitere Artikel:<ol><li><a href='http://www.jug-muenster.de/nachster-java-stammtisch-01072009-60/' rel='bookmark' title='Permanent Link: Nächster Java Stammtisch Münster: 01.07.2009'>Nächster Java Stammtisch Münster: 01.07.2009</a></li>
<li><a href='http://www.jug-muenster.de/und-zweiwochentlich-grust-der-duke-java-stammtisch-am-150709-66/' rel='bookmark' title='Permanent Link: Und zweiwöchentlich grüßt der Duke: Java Stammtisch am 15.07.09'>Und zweiwöchentlich grüßt der Duke: Java Stammtisch am 15.07.09</a></li>
<li><a href='http://www.jug-muenster.de/nachster-java-stammtisch-84-1800-uhr-12/' rel='bookmark' title='Permanent Link: Nächster Java Stammtisch: 8.4. 18:00 Uhr'>Nächster Java Stammtisch: 8.4. 18:00 Uhr</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p>Kommenden Mittwoch ist es wieder soweit: Der nächste Java Stammtisch findet am  Mittwoch den 12.05. im Cuba Nova statt.<br />
Für alle an Java, Softwareentwicklung und aktuellen Trends   interessierten Personen &#8211; auch PHP, Ruby on Rails Entwickler sind   natürlich willkommen!</p>
<p>Der Java Treff für Münster, Osnabrück und Umgebung findet am Mittwoch  ab ca. 18:30 Uhr im Cuba Nova statt. Das Cuba Nova befindets  ich in  der Achtermannstrasse in der Nähe vom Hauptbahnhof. (3 Minuten  zu Fuß,  wenn man langsam geht.).<span id="more-561"></span></p>
<p>Für Teilnehmer am Java Stammtisch gibt es einen Sonderpreis für  Weizen,  zudem gibt es auch Aktionsangbote bei Speisen.<br />
Parkmöglichkeiten und Anfahrt zum Java Usergroup Münster Treff: Parkhaus   Engelenschanze ist am nächsten gelegen. Ansonsten empfehlen wir die   Anreise mit dem Rad oder öffentlichen Verkehrsmitteln &#8211; insbesondere für   Weizen-Fans. (<a href="http://maps.google.de/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=cuba+nova+m%C3%BCnster&amp;sll=51.151786,10.415039&amp;sspn=17.844126,28.916016&amp;ie=UTF8&amp;ll=51.957893,7.633417&amp;spn=0.002136,0.00353&amp;z=18" target="_blank">Google Maps Link</a>)</p>
<div style="clear:both;">&nbsp;</div>

<p>Weitere Artikel:<ol><li><a href='http://www.jug-muenster.de/nachster-java-stammtisch-01072009-60/' rel='bookmark' title='Permanent Link: Nächster Java Stammtisch Münster: 01.07.2009'>Nächster Java Stammtisch Münster: 01.07.2009</a></li>
<li><a href='http://www.jug-muenster.de/und-zweiwochentlich-grust-der-duke-java-stammtisch-am-150709-66/' rel='bookmark' title='Permanent Link: Und zweiwöchentlich grüßt der Duke: Java Stammtisch am 15.07.09'>Und zweiwöchentlich grüßt der Duke: Java Stammtisch am 15.07.09</a></li>
<li><a href='http://www.jug-muenster.de/nachster-java-stammtisch-84-1800-uhr-12/' rel='bookmark' title='Permanent Link: Nächster Java Stammtisch: 8.4. 18:00 Uhr'>Nächster Java Stammtisch: 8.4. 18:00 Uhr</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jug-muenster.de/java-stammtisch-munster-561/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java Stammtisch</title>
		<link>http://www.jug-muenster.de/java-stammtisch-533/</link>
		<comments>http://www.jug-muenster.de/java-stammtisch-533/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 17:37:40 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
				<category><![CDATA[Termine]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[stammtisch]]></category>

		<guid isPermaLink="false">http://www.jug-muenster.de/?p=533</guid>
		<description><![CDATA[Am 14.04. findet wieder ein Java Stammtisch in Münster statt! Für alle an Java, Softwareentwicklung und aktuellen Trends interessierten Personen &#8211; auch PHP, Ruby on Rails Entwickler sind natürlich willkommen! Der Java Treff für Münster, Osnabrück und Umgebung findet am Mittwoch ab ca. 18:30 Uhr im Cuba Nova statt. Das Cuba Nova befindets ich in [...]


Weitere Artikel:<ol><li><a href='http://www.jug-muenster.de/nachster-java-stammtisch-01072009-60/' rel='bookmark' title='Permanent Link: Nächster Java Stammtisch Münster: 01.07.2009'>Nächster Java Stammtisch Münster: 01.07.2009</a></li>
<li><a href='http://www.jug-muenster.de/und-zweiwochentlich-grust-der-duke-java-stammtisch-am-150709-66/' rel='bookmark' title='Permanent Link: Und zweiwöchentlich grüßt der Duke: Java Stammtisch am 15.07.09'>Und zweiwöchentlich grüßt der Duke: Java Stammtisch am 15.07.09</a></li>
<li><a href='http://www.jug-muenster.de/nachster-java-stammtisch-84-1800-uhr-12/' rel='bookmark' title='Permanent Link: Nächster Java Stammtisch: 8.4. 18:00 Uhr'>Nächster Java Stammtisch: 8.4. 18:00 Uhr</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p>Am 14.04. findet wieder ein Java Stammtisch in Münster statt!</p>
<p>Für alle an Java, Softwareentwicklung und aktuellen Trends  interessierten Personen &#8211; auch PHP, Ruby on Rails Entwickler sind  natürlich willkommen!</p>
<p>Der Java Treff für Münster, Osnabrück und Umgebung findet am Mittwoch ab ca. 18:30 Uhr im Cuba Nova statt. Das Cuba Nova befindets  ich in der Achtermannstrasse in der Nähe vom Hauptbahnhof. (3 Minuten  zu Fuß, wenn man langsam geht.).</p>
<p>Für Teilnehmer am Java Stammtisch gibt es einen Sonderpreis fuer Weizen,  zudem gibt es auch Aktionsangbote bei Speisen.<br />
Parkmöglichkeiten und Anfahrt zum Java Usergroup Münster Treff: Parkhaus  Engelenschanze ist am nächsten gelegen. Ansonsten empfehlen wir die  Anreise mit dem Rad oder öffentlichen Verkehrsmitteln &#8211; insbesondere für  Weizen-Fans. (<a href="http://maps.google.de/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=cuba+nova+m%C3%BCnster&amp;sll=51.151786,10.415039&amp;sspn=17.844126,28.916016&amp;ie=UTF8&amp;ll=51.957893,7.633417&amp;spn=0.002136,0.00353&amp;z=18" target="_blank">Google Maps Link</a>)</p>
<div style="clear:both;">&nbsp;</div>

<p>Weitere Artikel:<ol><li><a href='http://www.jug-muenster.de/nachster-java-stammtisch-01072009-60/' rel='bookmark' title='Permanent Link: Nächster Java Stammtisch Münster: 01.07.2009'>Nächster Java Stammtisch Münster: 01.07.2009</a></li>
<li><a href='http://www.jug-muenster.de/und-zweiwochentlich-grust-der-duke-java-stammtisch-am-150709-66/' rel='bookmark' title='Permanent Link: Und zweiwöchentlich grüßt der Duke: Java Stammtisch am 15.07.09'>Und zweiwöchentlich grüßt der Duke: Java Stammtisch am 15.07.09</a></li>
<li><a href='http://www.jug-muenster.de/nachster-java-stammtisch-84-1800-uhr-12/' rel='bookmark' title='Permanent Link: Nächster Java Stammtisch: 8.4. 18:00 Uhr'>Nächster Java Stammtisch: 8.4. 18:00 Uhr</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jug-muenster.de/java-stammtisch-533/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Swing event departure board</title>
		<link>http://www.jug-muenster.de/swing-event-departure-board-518/</link>
		<comments>http://www.jug-muenster.de/swing-event-departure-board-518/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 07:18:48 +0000</pubDate>
		<dc:creator>Gerrit</dc:creator>
				<category><![CDATA[Contributed]]></category>
		<category><![CDATA[custom component]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[swing]]></category>

		<guid isPermaLink="false">http://www.jug-muenster.de/?p=518</guid>
		<description><![CDATA[Sitting at Gard du Nord train station in Paris in January this year i saw this huge departure board: It was fascinating to see and hear all these flipping characters everytime a departure time changed. I guess most of you know already how these boards work but for all others i will explain it shortly. [...]


Weitere Artikel:<ol><li><a href='http://www.jug-muenster.de/swing-worldclock-427/' rel='bookmark' title='Permanent Link: Swing Worldclock'>Swing Worldclock</a></li>
<li><a href='http://www.jug-muenster.de/swing-weather-worldclock-490/' rel='bookmark' title='Permanent Link: Swing Weather Worldclock'>Swing Weather Worldclock</a></li>
<li><a href='http://www.jug-muenster.de/custom-swing-component-227/' rel='bookmark' title='Permanent Link: Custom swing component'>Custom swing component</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p>Sitting at Gard du Nord train station in Paris in January this year i saw this huge departure board:</p>
<div style="float: left; margin: 1.0em 20.0em 2.0em 1.0em;"><img src="http://www.jug-muenster.de/wp-content/uploads/2010/03/Gare_du_Nord_Paris.jpg" border="0" alt="Gare_du_Nord_Paris.jpg" width="500" height="375" align="left" /></div>
<p>It was fascinating to see and hear all these flipping characters everytime a departure time changed. I guess most of you know already how these boards work but for all others i will explain it shortly.</p>
<p>The arriving trains are in chronological order from top to bottom of the board which means the trains that arrives as next stays on top of the board.<br />
The flipping characters are made of little metal plates that are printed on the front and backside with characters that are split into half. The Top part of the character is printed on the frontside of the upper plate and the bottom part of the character is printed on the backside of the lower plate (i tried to visualize it with a little image).<span id="more-518"></span></p>
<div style="float: left; margin: 1.0em 50.0em 2.0em 1.0em;"><img src="http://www.jug-muenster.de/wp-content/uploads/2010/03/FlipChar.png" border="0" alt="FlipChar.png" width="113" height="172" align="left" /></div>
<p>So if the current character the element shows is a &#8220;B&#8221; and it should show up the character &#8220;C&#8221; it only flips once and the next character will be the &#8220;C&#8221; BUT if it should shup up the character &#8220;A&#8221; it has to flip through the whole stack of characters until it reaches the &#8220;A&#8221; because there is only one direction it could flip.</p>
<p>I was asking myself if it might be possible to do that in swing and on my way back to germany i started creating a flipping character component in <a href="http://www.adobe.com/products/fireworks">Adobe Fireworks</a> and <a href="http://www.netbeans.org">Netbeans</a>.<br />
So the design of the component and the logic behind it was one thing but the flipping of the plates was a totaly different problem.<br />
For a realistic view i would need something like a perspective transform which is not available in Swing. First i skimmed through Google search results to find something and found solutions to this problem but for just a little component the solutions have been to heavy.<br />
Next thought was JavaFX because there you have a perspective transform and so i thought about using JavaFX to do the transformation and use the transformed images in swing&#8230;but i was not able to do so.</p>
<p>In the end it was a really easy solution even if it&#8217;s not as close to the reality as i whish it would but when i thought about the speed the characters are flipping with i found out that you won&#8217;t really notice each plate flipping. So the solution is using &#8220;fake images&#8221; for each flipping state which has the big advantage that i could use the same images over and over again. Here is what they look like:</p>
<div style="float: left; margin: 1.0em 50.0em 2.0em 1.0em;"><img src="http://www.jug-muenster.de/wp-content/uploads/2010/03/FakeFlip.png" border="0" alt="FakeFlip.png" width="240" height="31" align="left" /></div>
<p>So it just lacks the characters on the plate during the flip but on the other hand it&#8217;s faster because i do not have to transform the images on each flip but only playback a sequence of images.</p>
<p>The resulting swing component looks like this:</p>
<div style="float: left; margin: 1.0em 50.0em 2.0em 1.0em;"><img src="http://www.jug-muenster.de/wp-content/uploads/2010/03/ishot-1.png" border="0" alt="ishot-1.png" width="56" height="66" align="left" /></div>
<p>Now it was easy to create a panel that holds some of these flipping characters and put some logic in that the panel represents a word.</p>
<div style="float: left; margin: 1.0em 50.0em 2.0em 1.0em;"><img src="http://www.jug-muenster.de/wp-content/uploads/2010/03/ishot-2.png" border="0" alt="ishot-2.png" width="320" height="51" align="right" /></div>
<div style="float: left; margin: 1.0em 50.0em 2.0em 1.0em;"><img src="http://www.jug-muenster.de/wp-content/uploads/2010/03/ishot-31.png" border="0" alt="ishot-3.png" width="317" height="52" align="right" /></div>
<p>Satisfied with this solution i left the component like it was and moved to other things but when i was at <a href="http://www.jfokus.se">JFokus</a> conference in february in sweden i got the problem that i did not have the exact schedule of all the talks which leads me to the following idea&#8230;</p>
<p>Every appointment in my calendar (meetings etc.), talks on our JUG events and all other time based events could be handled by a departure board like the one i saw at Paris. So i started creating a talk departure board that we could use for our JUG events.</p>
<p>Now i was facing another problem that did not occur before, if i use a lot of these flipping characters i need a lot of animation at the same time which means a lot of redraws etc. which could make things slow down.<br />
For that reason i implemented a global timer that triggers the flipping of every character so that they are flipping at the same time. The next problem was the space the component would need&#8230;it&#8217;s huge (around 1600 px wide). I created the departure board for big screens with resolutions around 1920 px because it was not made for personal use on your notebook but for big screens at JUG events (you might tweak the component if you need a smaller one).</p>
<p>To get a better look i needed a analog clock to show the current time and some led to visualize the next upcoming event. And here they are:</p>
<div style="float: left; margin: 1.0em 50.0em 2.0em 1.0em;"><img src="http://www.jug-muenster.de/wp-content/uploads/2010/03/ishot-5.png" border="0" alt="ishot-5.png" width="134" height="121" align="right" /></div>
<div style="float: left; margin: 1.0em 50.0em 2.0em 1.0em;"><img src="http://www.jug-muenster.de/wp-content/uploads/2010/03/led.png" border="0" alt="led.png" width="46" height="40" align="right" /></div>
<p>With all these components available i started creating the departure board and the final result looks like this (only parts because it&#8217;s too big):</p>
<div style="float: left; margin: 1.0em 50.0em 2.0em 1.0em;"><img src="http://www.jug-muenster.de/wp-content/uploads/2010/03/ishot-71.png" border="0" alt="ishot-7.png" width="592" height="391" align="right" /></div>
<p>To fill the component with data i created a small xml file that contains the events (this could be improved) wich contains data like event title, event date and time, title, speaker and room of each talk. You could also add your own logo image (png format) to the upper right corner of the departure board by defining it in the xml file.<br />
The component will read in the xml file at startup if it is in the same folder and will display the events.<br />
If there will be a event within the next 5 minutes the green led at the beginning and end of the event will start to blink and they will stop blinking if the current event is running for more than 5 minutes. In this case the top event will be deleted from the board and all other events will move one row up in the list.</p>
<p>Well i finished this component in february but did not find the time to make further improvements to it so i decided to release it as it is to give you something to play with.</p>
<p>It might be usefull for some of you (e.g. you could use it in your company to visualize appointments with visitors at the lobby).</p>
<p>After start up it will take some seconds to flip every component through the whole stack (which might be slow) but after this the flipping of the rows should be faster (but could still be improved).</p>
<p>Finally here is a link to a little video where you could see the component in action.</p>
<p><a href="http://www.youtube.com/watch?v=Obinsku3pVo">Swing talk departure board</a></p>
<p>And as always the source as <a href="http://www.netbeans.org">Netbeans</a> project (<a title="EventTalkBoard.zip" href="http://www.jug-muenster.de/wp-content/uploads/2010/03/EventTalkBoard.zip">EventTalkBoard.zip</a>).</p>
<p>Follow me on <a href="http://twitter.com/hansolo_">twitter</a> if you like&#8230;</p>
<div style="clear:both;">&nbsp;</div>

<p>Weitere Artikel:<ol><li><a href='http://www.jug-muenster.de/swing-worldclock-427/' rel='bookmark' title='Permanent Link: Swing Worldclock'>Swing Worldclock</a></li>
<li><a href='http://www.jug-muenster.de/swing-weather-worldclock-490/' rel='bookmark' title='Permanent Link: Swing Weather Worldclock'>Swing Weather Worldclock</a></li>
<li><a href='http://www.jug-muenster.de/custom-swing-component-227/' rel='bookmark' title='Permanent Link: Custom swing component'>Custom swing component</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jug-muenster.de/swing-event-departure-board-518/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Swing Weather Worldclock</title>
		<link>http://www.jug-muenster.de/swing-weather-worldclock-490/</link>
		<comments>http://www.jug-muenster.de/swing-weather-worldclock-490/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 06:44:58 +0000</pubDate>
		<dc:creator>Gerrit</dc:creator>
				<category><![CDATA[Contributed]]></category>
		<category><![CDATA[custom component]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[swing]]></category>

		<guid isPermaLink="false">http://www.jug-muenster.de/?p=490</guid>
		<description><![CDATA[Remember the worldclock blogpost? Well it was ok but i thought there was one thing missing&#8230; Weather information For that reason i added this missing feature to the known worldclock component so that you now might choose out of four clocks: Pure clock and icon indicator for time of day Pure clock, icon indicator for [...]


Weitere Artikel:<ol><li><a href='http://www.jug-muenster.de/swing-worldclock-427/' rel='bookmark' title='Permanent Link: Swing Worldclock'>Swing Worldclock</a></li>
<li><a href='http://www.jug-muenster.de/custom-swing-component-227/' rel='bookmark' title='Permanent Link: Custom swing component'>Custom swing component</a></li>
<li><a href='http://www.jug-muenster.de/swing-apollo-space-program-mission-timer-280/' rel='bookmark' title='Permanent Link: Swing Apollo space program mission timer'>Swing Apollo space program mission timer</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p>Remember the <a href="http://www.jug-muenster.de/swing-worldclock-427/">worldclock</a> blogpost? Well it was ok but i thought there was one thing missing&#8230;</p>
<p><strong>Weather information</strong></p>
<p>For that reason i added this missing feature to the known worldclock component so that you now might choose out of four clocks:</p>
<ul>
<li>Pure clock and icon indicator for time of day</li>
<li>Pure clock, icon indicator for time of day and weather information</li>
<li>Clock with inbuild time of day display</li>
<li>Clock with inbuild time of day display and weather information</li>
</ul>
<p>This image shows all available clocks:</p>
<div style="float: left; margin: 1.0em 10.0em 2.0em 1.0em;"><img src="http://www.jug-muenster.de/wp-content/uploads/2010/03/ishot-6.png" border="0" alt="ishot-6.png" width="514" height="384" align="left" /></div>
<p>To get the weather information for all the cities in the enum i provide, i needed to add the country for each city and by adding all these countries i translated the cities to their (hopefully) right english names (in the original worldclock post i used german city names).</p>
<p>I use <a href="http://www.wunderground.com/">weather underground</a> to retrieve the weather information because they provide an easy to access service for free. You will find a package called &#8220;net&#8221; in the project in which i put the classes responsible for fetching the weather condition. There is timer which checks every 30 seconds for the availability of the connection.<br />
The clockpanels will every 10 minutes add a so called ConditionFetcher thread to the queue of the WeatherService which will be handled by a ExecutorService. The WeatherService will tries to use the system proxy server if there is one so it hopefuly works out for you.</p>
<p>The most of the work was done by creating all the different weather condition images which you will see in the next image:</p>
<div style="float: left; margin: 1.0em 1.0em 2.0em 1.0em;"><img src="http://www.jug-muenster.de/wp-content/uploads/2010/03/ishot-7.png" border="0" alt="ishot-7.png" width="570" height="722" align="left" /></div>
<p><span id="more-490"></span>And of course we will have different images for the night (but only different if the moon is visible), here they are:</p>
<div style="float: left; margin: 1.0em 1.0em 2.0em 1.0em;"><img src="http://www.jug-muenster.de/wp-content/uploads/2010/03/ishot-8.png" border="0" alt="ishot-8.png" width="600" height="280" align="left" /></div>
<p>Additional to the current weather condition you will find the min and max temperature below the condition image and you could choose between degrees celsius or fahrenheit as temperature unit.</p>
<p>In the project you will find a package called &#8220;app&#8221; and in this package you will find four classes called &#8220;Main1&#8243;, &#8220;Main2&#8243;, &#8220;Main3&#8243;, &#8220;Main4&#8243;. Each of these classes will start a different version of the worldclock with the four cities (Hong Kong, Berlin, New York, San Francisco) so if you are fine with the cities just select the right class as start class in the netbeans project properties and compile it. Otherwise change/add/remove the cities as you like.</p>
<p>Here are the four predefined worldclocks:</p>
<div style="float: left; margin: 1.0em 10.0em 2.0em 1.0em;">Main1.class<img src="http://www.jug-muenster.de/wp-content/uploads/2010/03/ishot-9.png" border="0" alt="ishot-9.png" width="410" height="412" align="left" /></div>
<div style="float: left; margin: 1.0em 10.0em 2.0em 1.0em;">Main2.class<img src="http://www.jug-muenster.de/wp-content/uploads/2010/03/ishot-10.png" border="0" alt="ishot-10.png" width="548" height="412" align="left" /></div>
<div style="float: left; margin: 1.0em 10.0em 2.0em 1.0em;">Main3.class<img src="http://www.jug-muenster.de/wp-content/uploads/2010/03/ishot-11.png" border="0" alt="ishot-11.png" width="400" height="412" align="left" /></div>
<div style="float: left; margin: 1.0em 10.0em 2.0em 1.0em;">Main4.class<img src="http://www.jug-muenster.de/wp-content/uploads/2010/03/ishot-12.png" border="0" alt="ishot-12.png" width="568" height="412" align="left" /></div>
<p>So that&#8217;s the weather worldtime clock and as always you will find the source as zipped <a href="http://www.netbeans.org">netbeans</a> project <a title="WorldClock.zip" href="http://www.jug-muenster.de/wp-content/uploads/2010/03/WorldClock.zip">here</a>.</p>
<p>By the way i&#8217;m still not satisfied with this version. I&#8217;m currently working on a different approach where i try to visualize the time of the day and combine it with weather and a clock but that project will take some more time to finish. Here is a little preview:</p>
<div style="float: left; margin: 1.0em 10.0em 2.0em 1.0em;"><img src="http://www.jug-muenster.de/wp-content/uploads/2010/03/ishot-13.png" border="0" alt="ishot-13.png" width="494" height="316" align="left" /></div>
<p>But that&#8217;s a different story&#8230;</p>
<p>Enjoy Java and follow me on <a href="http://twitter.com/hansolo_">twitter</a> if you like&#8230;</p>
<div style="clear:both;">&nbsp;</div>

<p>Weitere Artikel:<ol><li><a href='http://www.jug-muenster.de/swing-worldclock-427/' rel='bookmark' title='Permanent Link: Swing Worldclock'>Swing Worldclock</a></li>
<li><a href='http://www.jug-muenster.de/custom-swing-component-227/' rel='bookmark' title='Permanent Link: Custom swing component'>Custom swing component</a></li>
<li><a href='http://www.jug-muenster.de/swing-apollo-space-program-mission-timer-280/' rel='bookmark' title='Permanent Link: Swing Apollo space program mission timer'>Swing Apollo space program mission timer</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jug-muenster.de/swing-weather-worldclock-490/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>24.03. &#8211; Java Stammtisch Münster</title>
		<link>http://www.jug-muenster.de/24-03-java-stammtisch-munster-476/</link>
		<comments>http://www.jug-muenster.de/24-03-java-stammtisch-munster-476/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 16:27:22 +0000</pubDate>
		<dc:creator>Gerrit</dc:creator>
				<category><![CDATA[Termine]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[münster]]></category>
		<category><![CDATA[stammtisch]]></category>

		<guid isPermaLink="false">http://www.jug-muenster.de/?p=476</guid>
		<description><![CDATA[Am 24.03. gibt es wieder den Stammtisch der Java User Group Münster! Ein Angebot für alle an Java, Softwareentwicklung und aktuellen Trends interessierte Personen &#8211; auch PHP, Ruby on Rails Entwickler sind natürlich willkommen! Der Java Treff für Münster, Osnabrück und Umgebung findet am Mittwoch dem 24.03. ab ca. 18:30 Uhr im Cuba Nova statt. [...]


Weitere Artikel:<ol><li><a href='http://www.jug-muenster.de/nachster-java-stammtisch-01072009-60/' rel='bookmark' title='Permanent Link: Nächster Java Stammtisch Münster: 01.07.2009'>Nächster Java Stammtisch Münster: 01.07.2009</a></li>
<li><a href='http://www.jug-muenster.de/und-zweiwochentlich-grust-der-duke-java-stammtisch-am-150709-66/' rel='bookmark' title='Permanent Link: Und zweiwöchentlich grüßt der Duke: Java Stammtisch am 15.07.09'>Und zweiwöchentlich grüßt der Duke: Java Stammtisch am 15.07.09</a></li>
<li><a href='http://www.jug-muenster.de/nachster-java-stammtisch-84-1800-uhr-12/' rel='bookmark' title='Permanent Link: Nächster Java Stammtisch: 8.4. 18:00 Uhr'>Nächster Java Stammtisch: 8.4. 18:00 Uhr</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p>Am 24.03. gibt es wieder den Stammtisch der Java User Group Münster! Ein Angebot für alle an Java, Softwareentwicklung und aktuellen Trends interessierte Personen &#8211; auch PHP, Ruby on Rails Entwickler sind natürlich willkommen!</p>
<p>Der Java Treff für Münster, Osnabrück und Umgebung findet am Mittwoch dem 24.03. ab ca. 18:30 Uhr im Cuba Nova statt. Das Cuba Nova befindets ich in der Achtermannstrasse in der Nähe vom Hauptbahnhof. (3 Minuten zu Fuß, wenn man langsam geht.).</p>
<div style="clear:both;">&nbsp;</div>

<p>Weitere Artikel:<ol><li><a href='http://www.jug-muenster.de/nachster-java-stammtisch-01072009-60/' rel='bookmark' title='Permanent Link: Nächster Java Stammtisch Münster: 01.07.2009'>Nächster Java Stammtisch Münster: 01.07.2009</a></li>
<li><a href='http://www.jug-muenster.de/und-zweiwochentlich-grust-der-duke-java-stammtisch-am-150709-66/' rel='bookmark' title='Permanent Link: Und zweiwöchentlich grüßt der Duke: Java Stammtisch am 15.07.09'>Und zweiwöchentlich grüßt der Duke: Java Stammtisch am 15.07.09</a></li>
<li><a href='http://www.jug-muenster.de/nachster-java-stammtisch-84-1800-uhr-12/' rel='bookmark' title='Permanent Link: Nächster Java Stammtisch: 8.4. 18:00 Uhr'>Nächster Java Stammtisch: 8.4. 18:00 Uhr</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jug-muenster.de/24-03-java-stammtisch-munster-476/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
