<?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>Computer Cranium &#187; Java</title>
	<atom:link href="http://computercranium.com/category/programming/java/feed" rel="self" type="application/rss+xml" />
	<link>http://computercranium.com</link>
	<description>Your Computer Science Resource</description>
	<lastBuildDate>Fri, 23 Jul 2010 01:15:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Simple XML Reader</title>
		<link>http://computercranium.com/programming/java/simple-xml-reader</link>
		<comments>http://computercranium.com/programming/java/simple-xml-reader#comments</comments>
		<pubDate>Sun, 25 Apr 2010 05:06:30 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://computercranium.com/?p=457</guid>
		<description><![CDATA[Nowadays XML is a popular format for configuration files and transferring messages across networks. For reading node values from an XML file, I&#8217;ve created a small utility class.  There are two useful methods in this class, getElementValue() and getElementValues().  In this article, I will briefly show how you can read in values from [...]]]></description>
		<wfw:commentRss>http://computercranium.com/programming/java/simple-xml-reader/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOW-TO: Wrap Strings in Java (Swing)</title>
		<link>http://computercranium.com/programming/java/how-to-wrap-strings-in-java</link>
		<comments>http://computercranium.com/programming/java/how-to-wrap-strings-in-java#comments</comments>
		<pubDate>Wed, 28 Oct 2009 01:18:40 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[string wrap]]></category>
		<category><![CDATA[wrap]]></category>

		<guid isPermaLink="false">http://computercranium.com/?p=444</guid>
		<description><![CDATA[Ever wonder why there&#8217;s no method to wrap a String based on a certain number of characters in Swing? Me, too.  Having the ability to wrap Strings can be especially useful if you don&#8217;t know how long your Strings are going to be, such as when you have translated text in a JOptionPane (or [...]]]></description>
		<wfw:commentRss>http://computercranium.com/programming/java/how-to-wrap-strings-in-java/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java Relative Date and Time</title>
		<link>http://computercranium.com/programming/java/relative-date</link>
		<comments>http://computercranium.com/programming/java/relative-date#comments</comments>
		<pubDate>Thu, 13 Aug 2009 19:02:16 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[relative date]]></category>
		<category><![CDATA[relative time]]></category>

		<guid isPermaLink="false">http://computercranium.com/?p=432</guid>
		<description><![CDATA[In an application I&#8217;m working on, I needed the ability to show the date and time in a relative manner.  In other words, rather than displaying the full date and time like &#8220;August 13, 2009 at 3:07 pm&#8221;, I wanted to be able to determine when this date is relative to now and show [...]]]></description>
		<wfw:commentRss>http://computercranium.com/programming/java/relative-date/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOW-TO: Save User Preferences with Java&#8217;s Preferences API</title>
		<link>http://computercranium.com/programming/java/how-to-save-user-preferences</link>
		<comments>http://computercranium.com/programming/java/how-to-save-user-preferences#comments</comments>
		<pubDate>Thu, 09 Jul 2009 15:21:47 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[preferences]]></category>
		<category><![CDATA[preferences api]]></category>
		<category><![CDATA[user preferences]]></category>

		<guid isPermaLink="false">http://computercranium.com/?p=310</guid>
		<description><![CDATA[Users have certain expectations of your program. One of those expectations might be to have their preferences saved. This might include their username and password, the location of the application window, the size of the window, etc. Java&#8217;s Preferences API is an easy way to accomplish tasks like this without having to manually write and [...]]]></description>
		<wfw:commentRss>http://computercranium.com/programming/java/how-to-save-user-preferences/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOW-TO: Center a JFrame On The Screen</title>
		<link>http://computercranium.com/programming/java/howto-center-a-jframe-on-the-screen</link>
		<comments>http://computercranium.com/programming/java/howto-center-a-jframe-on-the-screen#comments</comments>
		<pubDate>Wed, 10 Jun 2009 01:52:41 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[GUI]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[center]]></category>
		<category><![CDATA[jframe]]></category>
		<category><![CDATA[screen]]></category>

		<guid isPermaLink="false">http://computercranium.com/?p=298</guid>
		<description><![CDATA[If you want to add a nice touch to your GUI application, have your JFrame automatically center on the user&#8217;s screen.  Not only does this looks much better than having it start up in the default (0, 0) location, but it takes very little coding effort to make this happen.  There are two [...]]]></description>
		<wfw:commentRss>http://computercranium.com/programming/java/howto-center-a-jframe-on-the-screen/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOW-TO: Detect link clicks in JEditorPane</title>
		<link>http://computercranium.com/programming/java/how-to-detect-link-clicks-in-jeditorpane</link>
		<comments>http://computercranium.com/programming/java/how-to-detect-link-clicks-in-jeditorpane#comments</comments>
		<pubDate>Tue, 09 Jun 2009 00:55:47 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[hyperlink]]></category>
		<category><![CDATA[jeditorpane]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://computercranium.com/?p=360</guid>
		<description><![CDATA[If you are using a JEditorPane to display HTML, and that HTML contains links, there is no built-in function to automatically detect if the user clicks on a link.  What&#8217;s the solution to this problem?  Create a HyperlinkListener.  Here&#8217;s how&#8230;

Recently for a project, I had to use a JEditorPane to display some [...]]]></description>
		<wfw:commentRss>http://computercranium.com/programming/java/how-to-detect-link-clicks-in-jeditorpane/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOW-TO: Java Gradient Backgrounds</title>
		<link>http://computercranium.com/programming/java/how-to-java-gradient-backgrounds</link>
		<comments>http://computercranium.com/programming/java/how-to-java-gradient-backgrounds#comments</comments>
		<pubDate>Tue, 09 Jun 2009 00:40:14 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[background]]></category>
		<category><![CDATA[gradient]]></category>

		<guid isPermaLink="false">http://computercranium.com/?p=353</guid>
		<description><![CDATA[Nowadays, if you are developing a GUI application, it looks more &#8220;professional&#8221; if your window&#8217;s background is gradient (i.e. the background fades from light to dark, or dark to light).  This gives your application a more polished look and can greatly improve the interface without much effort. Here&#8217;s how to do it&#8230;

The Code
Add the [...]]]></description>
		<wfw:commentRss>http://computercranium.com/programming/java/how-to-java-gradient-backgrounds/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOW-TO: Retrieve a File&#8217;s extension in Java</title>
		<link>http://computercranium.com/programming/java/how-to-retrieve-a-files-extension-in-java</link>
		<comments>http://computercranium.com/programming/java/how-to-retrieve-a-files-extension-in-java#comments</comments>
		<pubDate>Mon, 01 Jun 2009 14:13:24 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[file]]></category>

		<guid isPermaLink="false">http://computercranium.com/?p=348</guid>
		<description><![CDATA[For some strange reason, there&#8217;s no getFileExtension() or getExtension() method in Java&#8217;s File class (perhaps because Files do not necessarily always have extensions in every platform?).  Nevertheless, that doesn&#8217;t mean we can&#8217;t do it on our own.  All it takes is one line of code!

Suppose you have a File named file.  We [...]]]></description>
		<wfw:commentRss>http://computercranium.com/programming/java/how-to-retrieve-a-files-extension-in-java/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOW-TO: Use the Levenshtein Distance Algorithm</title>
		<link>http://computercranium.com/programming/java/howto-use-the-levenshtein-distance-algorithm</link>
		<comments>http://computercranium.com/programming/java/howto-use-the-levenshtein-distance-algorithm#comments</comments>
		<pubDate>Thu, 07 May 2009 22:30:21 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[Data Structures & Algorithms]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[algorithm]]></category>
		<category><![CDATA[distance]]></category>
		<category><![CDATA[levenshtein]]></category>

		<guid isPermaLink="false">http://computercranium.com/?p=320</guid>
		<description><![CDATA[For an anti-plagiarism application I developed about a year ago, I needed a way to calculate the similarity between two strings.  I wasn&#8217;t sure how to go about doing this at first, but then I came across the Levenshtein Distance Algorithm which gets the job done well.  In this example, I&#8217;ll show you [...]]]></description>
		<wfw:commentRss>http://computercranium.com/programming/java/howto-use-the-levenshtein-distance-algorithm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java JLabel Hyperlink</title>
		<link>http://computercranium.com/programming/java/java-jlabel-hyperlink</link>
		<comments>http://computercranium.com/programming/java/java-jlabel-hyperlink#comments</comments>
		<pubDate>Thu, 07 May 2009 03:43:58 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[jlabel hyperlink jhyperlink]]></category>

		<guid isPermaLink="false">http://computercranium.com/?p=314</guid>
		<description><![CDATA[Have you ever needed a hyperlink in your project?  One convenient place for this is in the &#8220;About&#8221; dialog with a link to your website or e-mail.  Unfortunately, there isn&#8217;t a JHyperlink class in the standard library, but we can make our own, right?  Let&#8217;s see how to do it!

The following class, [...]]]></description>
		<wfw:commentRss>http://computercranium.com/programming/java/java-jlabel-hyperlink/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
