<?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>Object Definitions Blog &#187; swing</title>
	<atom:link href="http://www.objectdefinitions.com/odblog/category/swing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.objectdefinitions.com/odblog</link>
	<description>Software Development - random theories, code snippits and opinions</description>
	<lastBuildDate>Tue, 06 Sep 2011 22:43:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to fix right click JTree selection and JPopupMenu so your JTree feels native</title>
		<link>http://www.objectdefinitions.com/odblog/2011/how-to-fix-right-click-selection-and-jpopupmenu-so-your-jtree-feels-native/</link>
		<comments>http://www.objectdefinitions.com/odblog/2011/how-to-fix-right-click-selection-and-jpopupmenu-so-your-jtree-feels-native/#comments</comments>
		<pubDate>Tue, 26 Apr 2011 07:31:03 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[swing]]></category>
		<category><![CDATA[consume]]></category>
		<category><![CDATA[dismiss]]></category>
		<category><![CDATA[JPopupMenu]]></category>
		<category><![CDATA[jtable]]></category>
		<category><![CDATA[JTree]]></category>
		<category><![CDATA[native]]></category>
		<category><![CDATA[popup]]></category>
		<category><![CDATA[right click]]></category>
		<category><![CDATA[right click select]]></category>
		<category><![CDATA[tree]]></category>

		<guid isPermaLink="false">http://www.objectdefinitions.com/odblog/?p=316</guid>
		<description><![CDATA[A way of fixing two annoying issues with JTree popup menus, which may make your swing app feel much more native. Examples to show how to select items in the tree on right click before the popup menu is shown, and a magic property to allow a click outside the popup to select new nodes immediately, as well as dismissing the popup.]]></description>
		<wfw:commentRss>http://www.objectdefinitions.com/odblog/2011/how-to-fix-right-click-selection-and-jpopupmenu-so-your-jtree-feels-native/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JTable setRowHeight causes slow repainting</title>
		<link>http://www.objectdefinitions.com/odblog/2009/jtable-setrowheight-causes-slow-repainting/</link>
		<comments>http://www.objectdefinitions.com/odblog/2009/jtable-setrowheight-causes-slow-repainting/#comments</comments>
		<pubDate>Sat, 06 Jun 2009 15:22:18 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[swing]]></category>
		<category><![CDATA[jtable]]></category>
		<category><![CDATA[repaint]]></category>
		<category><![CDATA[setRowHeight]]></category>

		<guid isPermaLink="false">http://www.objectdefinitions.com/odblog/?p=234</guid>
		<description><![CDATA[I&#8217;ve spent way too much time in the last few months fixing and optimising table rendering performance for a high performance Java application I&#8217;m working on at the moment. The problems were particularly hard to find becuase the app supports customization of almost every aspect of JTable UI, with custom rendering for rows, columns and [...]]]></description>
		<wfw:commentRss>http://www.objectdefinitions.com/odblog/2009/jtable-setrowheight-causes-slow-repainting/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Workaround for bug id 6753651 &#8211; find path to jar in cache under webstart</title>
		<link>http://www.objectdefinitions.com/odblog/2008/workaround-for-bug-id-6753651-find-path-to-jar-in-cache-under-webstart/</link>
		<comments>http://www.objectdefinitions.com/odblog/2008/workaround-for-bug-id-6753651-find-path-to-jar-in-cache-under-webstart/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 13:14:02 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[swing]]></category>
		<category><![CDATA[6753651]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[getResource]]></category>
		<category><![CDATA[jar]]></category>
		<category><![CDATA[jar path]]></category>
		<category><![CDATA[webstart]]></category>
		<category><![CDATA[webstart cache]]></category>

		<guid isPermaLink="false">http://www.objectdefinitions.com/odblog/2008/workaround-for-bug-id-6753651-find-path-to-jar-in-cache-under-webstart/</guid>
		<description><![CDATA[Here is a workaround for the changes in 1.5.0_16 and 1.6.0_07, which prevent you from obtaining a valid URL using Class.getResource(myClassName) under webstart.
This is related to bug id 6753651 raised here
URLs acquired in this way used to include a filesystem path to the jar file in the local webstart cache containing the resource. Some apps [...]]]></description>
		<wfw:commentRss>http://www.objectdefinitions.com/odblog/2008/workaround-for-bug-id-6753651-find-path-to-jar-in-cache-under-webstart/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>New Open Source SwingCommand library released</title>
		<link>http://www.objectdefinitions.com/odblog/2008/new-open-source-swingcommand-library-released/</link>
		<comments>http://www.objectdefinitions.com/odblog/2008/new-open-source-swingcommand-library-released/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 07:53:42 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[swing]]></category>
		<category><![CDATA[action]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[command pattern]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://www.objectdefinitions.com/odblog/2008/new-open-source-swingcommand-library-released/</guid>
		<description><![CDATA[I finally completed open sourcing SwingCommand &#8211; an open source library which provides support for the command pattern in Swing. In addition to synchronous commands, it provides support for asynchronous commands, which hides away the gory threading details in a similar way to the SwingWorker class &#8211; but in SwingCommand the asynchronous commands are integrated [...]]]></description>
		<wfw:commentRss>http://www.objectdefinitions.com/odblog/2008/new-open-source-swingcommand-library-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix for log4j bug 45704 &#8211; Failed to load logging.xml for JRE 1.5.0_16 and Webstart</title>
		<link>http://www.objectdefinitions.com/odblog/2008/fix-for-log4j-bug-45704-failed-to-load-loggingxml-for-jre-150_16-and-webstart/</link>
		<comments>http://www.objectdefinitions.com/odblog/2008/fix-for-log4j-bug-45704-failed-to-load-loggingxml-for-jre-150_16-and-webstart/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 19:25:13 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[swing]]></category>

		<guid isPermaLink="false">http://www.objectdefinitions.com/odblog/2008/fix-for-log4j-bug-45704-failed-to-load-loggingxml-for-jre-150_16-and-webstart/</guid>
		<description><![CDATA[This bug affects webstart applications which use log4j and xml configuration files (e.g. log.xml rather than log4j.properties) in JDK 1.5.0_16 (and later..?)
I think this problem has been occurring since a new security patch was released by Sun, which seems to have changed the behaviour of the URL class for webstart apps.
This security patch affects jdk [...]]]></description>
		<wfw:commentRss>http://www.objectdefinitions.com/odblog/2008/fix-for-log4j-bug-45704-failed-to-load-loggingxml-for-jre-150_16-and-webstart/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Calculating a color gradient</title>
		<link>http://www.objectdefinitions.com/odblog/2008/calculating-a-color-gradient/</link>
		<comments>http://www.objectdefinitions.com/odblog/2008/calculating-a-color-gradient/#comments</comments>
		<pubDate>Mon, 12 May 2008 15:02:41 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[swing]]></category>
		<category><![CDATA[colour]]></category>
		<category><![CDATA[gradient]]></category>
		<category><![CDATA[gradient fill]]></category>
		<category><![CDATA[GradientCalculator]]></category>

		<guid isPermaLink="false">http://www.objectdefinitions.com/odblog/2008/calculating-a-color-gradient/</guid>
		<description><![CDATA[For a recent project I needed some code to calculate a colour gradient for different points on a scatter chart. The class below performs a simple interpolation between two colours, if you feed it a value between 0 and 1.
&#160;public class GradientCalculator &#123;
&#160; &#160; &#160; &#160; private Color c1;
&#160; &#160; &#160; &#160; private Color c2;

&#160; [...]]]></description>
		<wfw:commentRss>http://www.objectdefinitions.com/odblog/2008/calculating-a-color-gradient/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drag and drop into empty table not working?</title>
		<link>http://www.objectdefinitions.com/odblog/2008/drag-and-drop-into-empty-table-not-working/</link>
		<comments>http://www.objectdefinitions.com/odblog/2008/drag-and-drop-into-empty-table-not-working/#comments</comments>
		<pubDate>Fri, 25 Jan 2008 17:51:02 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[swing]]></category>

		<guid isPermaLink="false">http://www.objectdefinitions.com/odblog/2008/drag-and-drop-into-empty-table-not-working/</guid>
		<description><![CDATA[This is a known gotcha from the early days of Swing, related to bug id 4310721
The symptom is that while drag and drop works fine into tables which are populated, trying to drop into a table with no rows, or drop data beneath the populated rows, does not work. The cause of this is that [...]]]></description>
		<wfw:commentRss>http://www.objectdefinitions.com/odblog/2008/drag-and-drop-into-empty-table-not-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More on swing garbage collection &#8211; static references</title>
		<link>http://www.objectdefinitions.com/odblog/2007/more-on-swing-garbage-collection-static-references/</link>
		<comments>http://www.objectdefinitions.com/odblog/2007/more-on-swing-garbage-collection-static-references/#comments</comments>
		<pubDate>Mon, 24 Sep 2007 16:03:58 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[swing]]></category>

		<guid isPermaLink="false">http://www.objectdefinitions.com/odblog/2007/more-on-swing-garbage-collection-static-references/</guid>
		<description><![CDATA[Static references are another common cause of memory leaks, both in Swing applications and other components.
If a static field holds a reference to an object instance, that instance will not be garbage collected until such time as its owning Class instance is garbage collected (which may be never). If have seen several applications which held [...]]]></description>
		<wfw:commentRss>http://www.objectdefinitions.com/odblog/2007/more-on-swing-garbage-collection-static-references/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Swing garbage collection &#8211; problems with the observer pattern</title>
		<link>http://www.objectdefinitions.com/odblog/2007/swing-garbage-collection-problems-with-the-observer-pattern/</link>
		<comments>http://www.objectdefinitions.com/odblog/2007/swing-garbage-collection-problems-with-the-observer-pattern/#comments</comments>
		<pubDate>Mon, 24 Sep 2007 15:54:07 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[swing]]></category>

		<guid isPermaLink="false">http://www.objectdefinitions.com/odblog/2007/swing-garbage-collection-problems-with-the-observer-pattern/</guid>
		<description><![CDATA[Clearly the observer pattern is very important in Swing programming, it is used every time you register a Swing model with a UI component, so that the component can update itself as the model data changes. However, there are inherent dangers in using this pattern without considering garbage collection.
The problem is that most standard implementations [...]]]></description>
		<wfw:commentRss>http://www.objectdefinitions.com/odblog/2007/swing-garbage-collection-problems-with-the-observer-pattern/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Tango Desktop Project &#8211; great icons for UI developers</title>
		<link>http://www.objectdefinitions.com/odblog/2007/tango-desktop-project-great-icons-for-ui-developers/</link>
		<comments>http://www.objectdefinitions.com/odblog/2007/tango-desktop-project-great-icons-for-ui-developers/#comments</comments>
		<pubDate>Mon, 24 Sep 2007 12:33:18 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[swing]]></category>

		<guid isPermaLink="false">http://www.objectdefinitions.com/odblog/2007/tango-desktop-project-great-resource-for-ui-developers/</guid>
		<description><![CDATA[Here is a great resource for UI developers.
Tango Desktop Project contains a set of icons which are released under the Creative Commons Attribution Sharealike license
It is generally hard to find a good set of icons for a UI project without going the commercial route, Tango seems to offer a good solution to this problem





]]></description>
		<wfw:commentRss>http://www.objectdefinitions.com/odblog/2007/tango-desktop-project-great-icons-for-ui-developers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

