<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Daniel E. Markle's Blog - Programming</title>
    <link>http://www.ashtech.net/~syntax/blog/</link>
    <description>Blatherings on Technology and Life</description>
    <dc:language>en</dc:language>
    <admin:errorReportsTo rdf:resource="mailto:" />
    <generator>Serendipity 1.2.1 - http://www.s9y.org/</generator>
    <managingEditor>syntax@ashtech.net (Daniel E. Markle)</managingEditor>
<webMaster>syntax@ashtech.net (Daniel E. Markle)</webMaster>

    <image>
        <url>http://ashtech.net/~syntax/blog/uploads/128blackcat.png</url>
        <title>RSS: Daniel E. Markle's Blog - Programming - Blatherings on Technology and Life</title>
        <link>http://www.ashtech.net/~syntax/blog/</link>
        <width>128</width>
        <height>128</height>
    </image>

<item>
    <title>Substance Look and Feel Upgrade Exception</title>
    <link>http://www.ashtech.net/~syntax/blog/archives/245-Substance-Look-and-Feel-Upgrade-Exception.html</link>
            <category>Programming</category>
    
    <comments>http://www.ashtech.net/~syntax/blog/archives/245-Substance-Look-and-Feel-Upgrade-Exception.html#comments</comments>
    <wfw:comment>http://www.ashtech.net/~syntax/blog/wfwcomment.php?cid=245</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.ashtech.net/~syntax/blog/rss.php?version=2.0&amp;type=comments&amp;cid=245</wfw:commentRss>
    

    <author>syntax@ashtech.net (Daniel E. Markle)</author>
    <content:encoded>
    Upgrading an old Java Swing application using &lt;a href=&quot;https://substance.dev.java.net/&quot;&gt;Substance LAF&lt;/a&gt; to 5.3, the old method of instantiating org.jvnet.substance.SubstanceLookAndFeel fails as this class is now abstract. This is documented in the &lt;a href=&quot;https://substance.dev.java.net/release-info/5.0/release-info.html&quot;&gt;release notes&lt;/a&gt;; however instantiating a concrete skin using:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;UIManager.setLookAndFeel(new SubstanceBusinessBlueSteelLookAndFeel());&lt;/code&gt; &lt;br /&gt;
&lt;br /&gt;
Causes the following error for most of them on OS X:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;Exception in thread &quot;AWT-EventQueue-0&quot; java.lang.ClassCastException: com.apple.laf.AquaRootPaneUI cannot be cast to org.jvnet.substance.SubstanceRootPaneUI&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Use the third recommended option instead:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;SubstanceLookAndFeel.setSkin(new SubstanceBusinessBlueSteelSkin());&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
This usage resolves the issue for every skin I&#039;ve tested. 
    </content:encoded>

    <pubDate>Wed, 03 Mar 2010 16:37:00 -0500</pubDate>
    <guid isPermaLink="false">http://www.ashtech.net/~syntax/blog/archives/245-guid.html</guid>
    
</item>
<item>
    <title>Grails GORM Id Sequence Naming</title>
    <link>http://www.ashtech.net/~syntax/blog/archives/239-Grails-GORM-Id-Sequence-Naming.html</link>
            <category>Programming</category>
    
    <comments>http://www.ashtech.net/~syntax/blog/archives/239-Grails-GORM-Id-Sequence-Naming.html#comments</comments>
    <wfw:comment>http://www.ashtech.net/~syntax/blog/wfwcomment.php?cid=239</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.ashtech.net/~syntax/blog/rss.php?version=2.0&amp;type=comments&amp;cid=239</wfw:commentRss>
    

    <author>syntax@ashtech.net (Daniel E. Markle)</author>
    <content:encoded>
    When working with automatic id&#039;s in &lt;a href=&quot;http://grails.org&quot;&gt;Grails&lt;/a&gt;, sequence generation uses a less than useful default sequence name of &lt;code&gt;hibernate_sequence&lt;/code&gt;. Use the following syntax as part of the &lt;a href=&quot;http://www.grails.org/GORM&quot;&gt;GORM&lt;/a&gt; mapping to set the sequence name to something sane:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;static mapping = {&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;id generator:sequence,params:[name:&#039;mytable_id_seq&#039;]&lt;br /&gt;
}&lt;/code&gt; 
    </content:encoded>

    <pubDate>Tue, 17 Nov 2009 23:44:00 -0500</pubDate>
    <guid isPermaLink="false">http://www.ashtech.net/~syntax/blog/archives/239-guid.html</guid>
    
</item>
<item>
    <title>org.hibernate.HibernateException: Illegal attempt to associate a collection with two open sessions</title>
    <link>http://www.ashtech.net/~syntax/blog/archives/206-org.hibernate.HibernateException-Illegal-attempt-to-associate-a-collection-with-two-open-sessions.html</link>
            <category>Programming</category>
    
    <comments>http://www.ashtech.net/~syntax/blog/archives/206-org.hibernate.HibernateException-Illegal-attempt-to-associate-a-collection-with-two-open-sessions.html#comments</comments>
    <wfw:comment>http://www.ashtech.net/~syntax/blog/wfwcomment.php?cid=206</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.ashtech.net/~syntax/blog/rss.php?version=2.0&amp;type=comments&amp;cid=206</wfw:commentRss>
    

    <author>syntax@ashtech.net (Daniel E. Markle)</author>
    <content:encoded>
    Working on a Spring application using Hibernate recently I encountered the dreaded &lt;code&gt;org.hibernate.HibernateException: Illegal attempt to associate a collection with two open sessions&lt;/code&gt; error. Fixes for this vary widely; it can be caused by problems ranging from bad session handling in your framework configuration, bad cascade settings, incorrect persistence settings, to forgetting initialization of an array stored in a &lt;code&gt;@ManyToOne&lt;/code&gt; database relation.&lt;br /&gt;
&lt;br /&gt;
Make sure to check thoroughly for the latter before wasting hours changing the transaction handling, trying various cascade settings, or mucking with persistence annotations. 
    </content:encoded>

    <pubDate>Wed, 11 Nov 2009 17:40:37 -0500</pubDate>
    <guid isPermaLink="false">http://www.ashtech.net/~syntax/blog/archives/206-guid.html</guid>
    
</item>
<item>
    <title>Grails FCKeditor Gotcha</title>
    <link>http://www.ashtech.net/~syntax/blog/archives/174-Grails-FCKeditor-Gotcha.html</link>
            <category>Programming</category>
    
    <comments>http://www.ashtech.net/~syntax/blog/archives/174-Grails-FCKeditor-Gotcha.html#comments</comments>
    <wfw:comment>http://www.ashtech.net/~syntax/blog/wfwcomment.php?cid=174</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.ashtech.net/~syntax/blog/rss.php?version=2.0&amp;type=comments&amp;cid=174</wfw:commentRss>
    

    <author>syntax@ashtech.net (Daniel E. Markle)</author>
    <content:encoded>
    When using the &lt;a href=&quot;http://grails.org/plugin/fckeditor&quot;&gt;FCKeditor plugin for Grails&lt;/a&gt;, if the data is loaded into the view this way:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&amp;lt;fckeditor:editor name=&quot;detail&quot;&amp;gt;&lt;br /&gt;
&amp;#160;&amp;#160;${fieldValue(bean:itemInstance,field:&#039;detail&#039;)}&lt;br /&gt;
&amp;lt;/fckeditor:editor&amp;gt;&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
The raw html being retrieved from the data source will not be parsed as expected. This will display as html source in the editor, and if saved will result in the html tags being placed into the data source as escaped text. For correct handling, add &lt;code&gt;.decodeHTML()&lt;/code&gt; to the JSTL retrieval:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&amp;lt;fckeditor:editor name=&quot;detail&quot;&amp;gt;&lt;br /&gt;
&amp;#160;&amp;#160;${fieldValue(bean:itemInstance,field:&#039;detail&#039;).decodeHTML()}&lt;br /&gt;
&amp;lt;/fckeditor:editor&amp;gt;&lt;br /&gt;
&lt;/code&gt; 
    </content:encoded>

    <pubDate>Wed, 28 Oct 2009 21:27:21 -0400</pubDate>
    <guid isPermaLink="false">http://www.ashtech.net/~syntax/blog/archives/174-guid.html</guid>
    
</item>
<item>
    <title>The C++ Lands</title>
    <link>http://www.ashtech.net/~syntax/blog/archives/165-The-C++-Lands.html</link>
            <category>Programming</category>
    
    <comments>http://www.ashtech.net/~syntax/blog/archives/165-The-C++-Lands.html#comments</comments>
    <wfw:comment>http://www.ashtech.net/~syntax/blog/wfwcomment.php?cid=165</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.ashtech.net/~syntax/blog/rss.php?version=2.0&amp;type=comments&amp;cid=165</wfw:commentRss>
    

    <author>syntax@ashtech.net (Daniel E. Markle)</author>
    <content:encoded>
    Every programmer I know has played Dungeons and Dragons at some point. &lt;a href=&quot;http://alenacpp.blogspot.com/2009/06/c.html&quot;&gt;The C++ Lands Map&lt;/a&gt; is a beautiful merging of the two worlds. There are some &lt;a href=&quot;http://www.boingboing.net/2009/06/04/dd-style-map-of-c.html&quot;&gt;amusing comments on the map at boing boing&lt;/a&gt; too.&lt;br /&gt;
&lt;br /&gt;
I would love to have a poster print of this on some good quality parchment-like stock. Perhaps the author will do a commercial printing of it in the future. 
    </content:encoded>

    <pubDate>Tue, 09 Jun 2009 23:33:51 -0400</pubDate>
    <guid isPermaLink="false">http://www.ashtech.net/~syntax/blog/archives/165-guid.html</guid>
    
</item>
<item>
    <title>Injecting DAO Objects Into Spring Controllers </title>
    <link>http://www.ashtech.net/~syntax/blog/archives/127-Injecting-DAO-Objects-Into-Spring-Controllers.html</link>
            <category>Programming</category>
    
    <comments>http://www.ashtech.net/~syntax/blog/archives/127-Injecting-DAO-Objects-Into-Spring-Controllers.html#comments</comments>
    <wfw:comment>http://www.ashtech.net/~syntax/blog/wfwcomment.php?cid=127</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.ashtech.net/~syntax/blog/rss.php?version=2.0&amp;type=comments&amp;cid=127</wfw:commentRss>
    

    <author>syntax@ashtech.net (Daniel E. Markle)</author>
    <content:encoded>
    When building &lt;a href=&quot;http://springframework.org&quot;&gt;Spring&lt;/a&gt; controllers, it is often useful to access a DAO instance which has been set up in &lt;code&gt;applicationContext.xml&lt;/code&gt;. To do so, add a variable in the controller for the DAO as well as a setter for it. Once this is done, wire it up by reference in &lt;code&gt;dispatcher-servlet.xml&lt;/code&gt;. &lt;br /&gt;&lt;a href=&quot;http://www.ashtech.net/~syntax/blog/archives/127-Injecting-DAO-Objects-Into-Spring-Controllers.html#extended&quot;&gt;Continue reading &quot;Injecting DAO Objects Into Spring Controllers &quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Thu, 05 Feb 2009 21:27:42 -0500</pubDate>
    <guid isPermaLink="false">http://www.ashtech.net/~syntax/blog/archives/127-guid.html</guid>
    
</item>
<item>
    <title>Spring Generic URL Handling</title>
    <link>http://www.ashtech.net/~syntax/blog/archives/126-Spring-Generic-URL-Handling.html</link>
            <category>Programming</category>
    
    <comments>http://www.ashtech.net/~syntax/blog/archives/126-Spring-Generic-URL-Handling.html#comments</comments>
    <wfw:comment>http://www.ashtech.net/~syntax/blog/wfwcomment.php?cid=126</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.ashtech.net/~syntax/blog/rss.php?version=2.0&amp;type=comments&amp;cid=126</wfw:commentRss>
    

    <author>syntax@ashtech.net (Daniel E. Markle)</author>
    <content:encoded>
    Often when working with &lt;a href=&quot;http://www.springsource.org/&quot;&gt;Spring Web MVC&lt;/a&gt; mappings I want all calls to a certain extension handled by a generic resolver, i.e. mapping &quot;*.html&quot; to corresponding &quot;*.jsp&quot; entries in WEB-INF. This is easily done using &lt;a href=&quot;http://static.springframework.org/spring/docs/2.0.x/api/org/springframework/web/servlet/mvc/UrlFilenameViewController.html&quot;&gt;UrlFilenameViewController&lt;/a&gt; which automatically passes the parsed filename to the view resolver. &lt;br /&gt;&lt;a href=&quot;http://www.ashtech.net/~syntax/blog/archives/126-Spring-Generic-URL-Handling.html#extended&quot;&gt;Continue reading &quot;Spring Generic URL Handling&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Thu, 05 Feb 2009 17:29:34 -0500</pubDate>
    <guid isPermaLink="false">http://www.ashtech.net/~syntax/blog/archives/126-guid.html</guid>
    
</item>
<item>
    <title>JTableModel Implementation Null Gotchas</title>
    <link>http://www.ashtech.net/~syntax/blog/archives/123-JTableModel-Implementation-Null-Gotchas.html</link>
            <category>Programming</category>
    
    <comments>http://www.ashtech.net/~syntax/blog/archives/123-JTableModel-Implementation-Null-Gotchas.html#comments</comments>
    <wfw:comment>http://www.ashtech.net/~syntax/blog/wfwcomment.php?cid=123</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.ashtech.net/~syntax/blog/rss.php?version=2.0&amp;type=comments&amp;cid=123</wfw:commentRss>
    

    <author>syntax@ashtech.net (Daniel E. Markle)</author>
    <content:encoded>
    A Java Swing user interface I am working on which makes extensive use of a custom &lt;a href=&quot;http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/table/TableModel.html&quot;&gt;JTableModel&lt;/a&gt; implementation was failing. In certain instances when my data structure changes, it purges empty cells. If the cursor was left in these cells while this was taking place, the table would become unresponsive, often requiring an application restart to fix.&lt;br /&gt;
&lt;br /&gt;
Watch for issues with &lt;code&gt;setValueAt&lt;/code&gt;, which in some cases can be called with invalid values. In particular if the cursor is editing a field, the table is not refreshed until the edit focus leaves the widget even if you try to force it with &lt;code&gt;validate()&lt;/code&gt; calls. In my instance the ideal fix was to add checks and do nothing instead of throwing exceptions.&lt;br /&gt;
&lt;br /&gt;
With &lt;code&gt;getValueAt&lt;/code&gt;, some table widget types choked on my default of null, which I was returning for invalid cells. Using an empty string instead of null for these invalid cells fixed this problem. 
    </content:encoded>

    <pubDate>Mon, 20 Oct 2008 18:29:51 -0400</pubDate>
    <guid isPermaLink="false">http://www.ashtech.net/~syntax/blog/archives/123-guid.html</guid>
    
</item>
<item>
    <title>JSPX, Tag Minimization, and Firefox 3</title>
    <link>http://www.ashtech.net/~syntax/blog/archives/120-JSPX,-Tag-Minimization,-and-Firefox-3.html</link>
            <category>Programming</category>
    
    <comments>http://www.ashtech.net/~syntax/blog/archives/120-JSPX,-Tag-Minimization,-and-Firefox-3.html#comments</comments>
    <wfw:comment>http://www.ashtech.net/~syntax/blog/wfwcomment.php?cid=120</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.ashtech.net/~syntax/blog/rss.php?version=2.0&amp;type=comments&amp;cid=120</wfw:commentRss>
    

    <author>syntax@ashtech.net (Daniel E. Markle)</author>
    <content:encoded>
    Firefox 3 introduces a new behavior when your doctype is XHTML Strict; certain tags that do not allow minimization as per the spec no longer close anyway. For example, if you use a &lt;code&gt;&amp;lt;script src=&quot;blah.js&quot; /&amp;gt;&lt;/code&gt; tag in your heading, Firefox 3 will take the whole rest of the page as a script, which will result in a blank page. This is good as it enforces standards compliance, however jspx minimizes tags, so you may have &lt;code&gt;&amp;lt;script src=&quot;blah.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/code&gt; on your page, but the actual rendered page will minimize it.&lt;br /&gt;
&lt;br /&gt;
There are many ways to fix this issue by playing tricks on jspx, I recommend:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&amp;lt;script src=&quot;blah.js&quot;&amp;gt;&amp;lt;!-- //prevent jspx minimization --&amp;gt;&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
This reminds me when I&#039;m working on the code why that comment is there. Hopefully this will be fixed in the jspx spec at some point. 
    </content:encoded>

    <pubDate>Wed, 17 Sep 2008 18:11:55 -0400</pubDate>
    <guid isPermaLink="false">http://www.ashtech.net/~syntax/blog/archives/120-guid.html</guid>
    
</item>
<item>
    <title>Spring Binary and Text Forms</title>
    <link>http://www.ashtech.net/~syntax/blog/archives/115-Spring-Binary-and-Text-Forms.html</link>
            <category>Programming</category>
    
    <comments>http://www.ashtech.net/~syntax/blog/archives/115-Spring-Binary-and-Text-Forms.html#comments</comments>
    <wfw:comment>http://www.ashtech.net/~syntax/blog/wfwcomment.php?cid=115</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.ashtech.net/~syntax/blog/rss.php?version=2.0&amp;type=comments&amp;cid=115</wfw:commentRss>
    

    <author>syntax@ashtech.net (Daniel E. Markle)</author>
    <content:encoded>
    A project I am working on requires binary image files and form data to be submitted simultaneously.  This is rather easy to do with &lt;a href=&quot;http://springframework.org/&quot;&gt;Spring&lt;a&gt;, following the directions available in the latest documentation to &lt;a href=&quot;http://static.springframework.org/spring/docs/2.5.x/reference/mvc.html#mvc-multipart-forms&quot;&gt;handle file uploads in a form&lt;/a&gt;.  It does not mention there that you can mix form fields as well as file upload fields when doing this, but it works as expected. &lt;br /&gt;&lt;a href=&quot;http://www.ashtech.net/~syntax/blog/archives/115-Spring-Binary-and-Text-Forms.html#extended&quot;&gt;Continue reading &quot;Spring Binary and Text Forms&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Thu, 05 Jun 2008 18:52:40 -0400</pubDate>
    <guid isPermaLink="false">http://www.ashtech.net/~syntax/blog/archives/115-guid.html</guid>
    
</item>
<item>
    <title>PostgreSQL and Ruby on OS X</title>
    <link>http://www.ashtech.net/~syntax/blog/archives/112-PostgreSQL-and-Ruby-on-OS-X.html</link>
            <category>Programming</category>
    
    <comments>http://www.ashtech.net/~syntax/blog/archives/112-PostgreSQL-and-Ruby-on-OS-X.html#comments</comments>
    <wfw:comment>http://www.ashtech.net/~syntax/blog/wfwcomment.php?cid=112</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://www.ashtech.net/~syntax/blog/rss.php?version=2.0&amp;type=comments&amp;cid=112</wfw:commentRss>
    

    <author>syntax@ashtech.net (Daniel E. Markle)</author>
    <content:encoded>
    Here is the easiest process I have found for setting up &lt;a href=&quot;http://ruby-lang.org&quot;&gt;Ruby&lt;/a&gt; and &lt;a href=&quot;http://postgresql.org&quot;&gt;PostgreSQL&lt;/a&gt; on OS X Leopard at this time.&lt;br /&gt;
&lt;br /&gt;
I recommend &lt;a href=&quot;http://www.postgresqlformac.com/&quot;&gt;PostgreSQL for Mac&lt;/a&gt; instead of fink as it is more actively maintained and easier to install.  Note that when downloading, use the alternate download not the Sourceforge links, as the Sourceforge download is not current and has issues.  This installer places the PostgreSQL CLI commands in &lt;code&gt;/Library/PostgreSQL8/bin/&lt;/code&gt; and will auto-start PostgreSQL on system startup.  It includes some graphical tools, but I recommend ignoring them and and installing &lt;a href=&quot;http://www.pgadmin.org/&quot;&gt;pgAdmin III&lt;/a&gt; if you want an administration GUI (I usually just use the CLI tools).&lt;br /&gt;
&lt;br /&gt;
Ruby has a couple PostgreSQL gems, I recommend &lt;a href=&quot;http://rubyforge.org/projects/ruby-pg/&quot;&gt;ruby-pg&lt;/a&gt; which appears to be the only one actively maintained.  The easiest way to get it installed is to download the latest .gem, then run the following command to install it in the directory where you saved it (replace the version number as necessary):&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;PATH=$PATH:/Library/PostgreSQL/bin/ gem install pg-0.7.9.2008.02.05.gem&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Don&#039;t waste your time trying to find documentation for this gem online, point your browser at the documentation on your local machine, which for this version was at:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;file:///Library/Ruby/Gems/1.8/doc/pg-0.7.9.2008.02.05/rdoc/index.html&lt;/code&gt; 
    </content:encoded>

    <pubDate>Wed, 27 Feb 2008 10:14:44 -0500</pubDate>
    <guid isPermaLink="false">http://www.ashtech.net/~syntax/blog/archives/112-guid.html</guid>
    
</item>
<item>
    <title>Simple Preferences for Java</title>
    <link>http://www.ashtech.net/~syntax/blog/archives/106-Simple-Preferences-for-Java.html</link>
            <category>Programming</category>
    
    <comments>http://www.ashtech.net/~syntax/blog/archives/106-Simple-Preferences-for-Java.html#comments</comments>
    <wfw:comment>http://www.ashtech.net/~syntax/blog/wfwcomment.php?cid=106</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.ashtech.net/~syntax/blog/rss.php?version=2.0&amp;type=comments&amp;cid=106</wfw:commentRss>
    

    <author>syntax@ashtech.net (Daniel E. Markle)</author>
    <content:encoded>
    When storing preferences for applications on Java, there is a built in Preferences API.  If you need full control of preference storage or need to change it from applications external to Java or manually, &lt;a href=&quot;https://www.ashtech.net/~syntax/blog/archives/33-JFig-Configuration-Utility-Cannot-Save.html&quot; &gt;one of the options I discussed last year&lt;/a&gt; may be better (if you need an XML file in a specific location for example), but if you just need simple cross-platform preference storage, the built in option is ideal.&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;Usage Summary&lt;/h4&gt;&lt;br /&gt;
&lt;code&gt;import java.util.prefs.Preferences;&lt;br /&gt;
&lt;br /&gt;
Preferences prefs = Preferences.userNodeForPackage( getClass() );&lt;br /&gt;
&lt;br /&gt;
prefs.get(&quot;keyName&quot;, &quot;default value&quot;);&lt;br /&gt;
&lt;br /&gt;
prefs.put(&quot;keyName&quot;, &quot;new value&quot;);&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
The JavaDoc for it is quite confusing, so try this &lt;a href=&quot;http://www.particle.kth.se/~lindsey/JavaCourse/Book/Part1/Java/Chapter10/Preferences.html&quot; &gt;tutorial on java.util.prefs.Preferences&lt;/a&gt; instead. 
    </content:encoded>

    <pubDate>Thu, 20 Dec 2007 18:42:11 -0500</pubDate>
    <guid isPermaLink="false">http://www.ashtech.net/~syntax/blog/archives/106-guid.html</guid>
    
</item>
<item>
    <title>Netbeans 6 Released</title>
    <link>http://www.ashtech.net/~syntax/blog/archives/105-Netbeans-6-Released.html</link>
            <category>Programming</category>
    
    <comments>http://www.ashtech.net/~syntax/blog/archives/105-Netbeans-6-Released.html#comments</comments>
    <wfw:comment>http://www.ashtech.net/~syntax/blog/wfwcomment.php?cid=105</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.ashtech.net/~syntax/blog/rss.php?version=2.0&amp;type=comments&amp;cid=105</wfw:commentRss>
    

    <author>syntax@ashtech.net (Daniel E. Markle)</author>
    <content:encoded>
    &lt;a href=&quot;http://netbeans.org&quot;&gt;Netbeans 6&lt;/a&gt; has been released.  I have been using it since beta 1 and have found it an invaluable improvement over the old version.  The editor and layout is improved, and subversion support is now built in.  The major change in this release is the language support; Ruby support is now available, and there is a PHP plugin.  I&#039;ll report as I try these other plugins over the next few weeks. 
    </content:encoded>

    <pubDate>Thu, 06 Dec 2007 18:24:16 -0500</pubDate>
    <guid isPermaLink="false">http://www.ashtech.net/~syntax/blog/archives/105-guid.html</guid>
    
</item>
<item>
    <title>OS X: JFrame with JMenuBar Must Be First</title>
    <link>http://www.ashtech.net/~syntax/blog/archives/104-OS-X-JFrame-with-JMenuBar-Must-Be-First.html</link>
            <category>Programming</category>
    
    <comments>http://www.ashtech.net/~syntax/blog/archives/104-OS-X-JFrame-with-JMenuBar-Must-Be-First.html#comments</comments>
    <wfw:comment>http://www.ashtech.net/~syntax/blog/wfwcomment.php?cid=104</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.ashtech.net/~syntax/blog/rss.php?version=2.0&amp;type=comments&amp;cid=104</wfw:commentRss>
    

    <author>syntax@ashtech.net (Daniel E. Markle)</author>
    <content:encoded>
    When building Swing applications customized for OS X, note that for more complex applications with multiple JFrames, a JFrame containing a JMenuBar must be initialized first.  If a JFrame with no JMenuBar is created first, neither the custom application name nor the menus will work correctly. &lt;br /&gt;&lt;a href=&quot;http://www.ashtech.net/~syntax/blog/archives/104-OS-X-JFrame-with-JMenuBar-Must-Be-First.html#extended&quot;&gt;Continue reading &quot;OS X: JFrame with JMenuBar Must Be First&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Tue, 30 Oct 2007 13:35:28 -0400</pubDate>
    <guid isPermaLink="false">http://www.ashtech.net/~syntax/blog/archives/104-guid.html</guid>
    
</item>
<item>
    <title>Google Collections Library for Java</title>
    <link>http://www.ashtech.net/~syntax/blog/archives/103-Google-Collections-Library-for-Java.html</link>
            <category>Programming</category>
    
    <comments>http://www.ashtech.net/~syntax/blog/archives/103-Google-Collections-Library-for-Java.html#comments</comments>
    <wfw:comment>http://www.ashtech.net/~syntax/blog/wfwcomment.php?cid=103</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.ashtech.net/~syntax/blog/rss.php?version=2.0&amp;type=comments&amp;cid=103</wfw:commentRss>
    

    <author>syntax@ashtech.net (Daniel E. Markle)</author>
    <content:encoded>
    Wish you could have multiple keys in your Map class?  Want to add constraints easily to your collections to ensure the data is as expected?  Both of these and much more are available in the &lt;a href=&quot;http://code.google.com/p/google-collections/&quot; &gt;Google Collections Library&lt;/a&gt;.  Obviously these can be coded yourself; but this library offers a more elegant and better tested way to build some of these useful data structures. 
    </content:encoded>

    <pubDate>Thu, 25 Oct 2007 13:23:25 -0400</pubDate>
    <guid isPermaLink="false">http://www.ashtech.net/~syntax/blog/archives/103-guid.html</guid>
    
</item>

</channel>
</rss>