<?xml version="1.0"?>
<rss version="2.0">
<channel>
  <title>Gregg Bolinger - java tag</title>
  <link>http://www.greggbolinger.com/blog/tags/java/</link>
  <description></description>
  <language>en</language>
  <copyright>Gregg Bolinger</copyright>
  <lastBuildDate>Tue, 18 Nov 2008 15:58:00 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  
  
  <item>
    <title>Stripes Book Promo @ JavaRanch</title>
    <link>http://www.greggbolinger.com/blog/2008/11/18/1227023880000.html</link>
    
      
        <description>
          &lt;p&gt;
Frederic Daoud is promoting his new book &lt;a href=&#034;http://www.pragprog.com/titles/fdstr/stripes&#034;&gt;Stripes...and Java web development is fun again&lt;/a&gt; all this week at JavaRanch in the &lt;a href=&#034;http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=forum&amp;f=83&#034;&gt;Application Frameworks&lt;/a&gt; forum.  4 lucky people will be drawn on Friday to win a free copy of Freddy&#039;s book so get to JavaRanch and ask him some questions about Stripes and his book.
&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://www.greggbolinger.com/blog/2008/11/18/1227023880000.html#comments</comments>
    <guid isPermaLink="true">http://www.greggbolinger.com/blog/2008/11/18/1227023880000.html</guid>
    <pubDate>Tue, 18 Nov 2008 15:58:00 GMT</pubDate>
  </item>
  
  <item>
    <title>Java6 Drag and Drop JTree to JList</title>
    <link>http://www.greggbolinger.com/blog/2008/11/14/1226688420000.html</link>
    
      
      
        <description>
          &lt;p&gt;
Like I said in my last post, I spent a lot of time trying to get drag and drop to work from a JTree to a JList.  I noticed someone trying to do the same thing in the Swing forum on JavaRanch so I ripped out my code I wrote, cleaned it up, and am posting here for consumption and criticism.  I didn&#039;t do some things that needed to be done like actually writing code in the canImport method.  I just returned true for simplicity.  I also didn&#039;t bother trying to transfer all the children of a node to the JList.
&lt;/p&gt;&lt;p&gt;&lt;a href=&#034;http://www.greggbolinger.com/blog/2008/11/14/1226688420000.html&#034;&gt;Read more...&lt;/a&gt;&lt;/p&gt;
        </description>
      
    
    
    
    <comments>http://www.greggbolinger.com/blog/2008/11/14/1226688420000.html#comments</comments>
    <guid isPermaLink="true">http://www.greggbolinger.com/blog/2008/11/14/1226688420000.html</guid>
    <pubDate>Fri, 14 Nov 2008 18:47:00 GMT</pubDate>
  </item>
  
  <item>
    <title>Part 3 of ?: Swing Application Best Practices</title>
    <link>http://www.greggbolinger.com/blog/2008/11/13/1226598900000.html</link>
    
      
        <description>
          &lt;p&gt;
If you haven&#039;t seen &lt;a href=&#034;http://www.greggbolinger.com/blog/2008/11/11/1226423940000.html&#034;&gt;Part 1&lt;/a&gt; and &lt;a href=&#034;http://www.greggbolinger.com/blog/2008/11/12/1226502180000.html&#034;&gt;Part 2&lt;/a&gt; of this series I invite you to read those.  I&#039;m really excited about the amount of response I have received on these posts and I really think something good can come out of this.  The only problem thus far is I have received an email from 1 person wanting to join the project.  I can&#039;t do this alone and I can&#039;t do it with 2 people.  For this to work I really need more participation on the actual project so if you would like to help in any way please send me a gmail address to gdboling AT you know the rest.
&lt;/p&gt;
&lt;p&gt;
We should start talking about what kind of application we can build that will provide a good foundation for everything we want to try and accomplish.  Here are a few points to think about as we try and come up with ideas:
&lt;ul&gt;
&lt;li&gt;It has to be simple yet interesting
&lt;li&gt;It needs to support multiple forms
&lt;li&gt;It should try and use as many components as makes sense.  It doesn&#039;t need to a be SwingSet demo but at the same time, if a concept can&#039;t cary over to multiple components we need to provide good examples.
&lt;li&gt;It doesn&#039;t &lt;i&gt;have&lt;/i&gt; to be RIA.  I believe the things we are trying show and learn can apply to any type of Swing application.  There are just some things that RIA&#039;s require that aren&#039;t what we care about right now and I don&#039;t want to get hung up on something.
&lt;li&gt;Persistence shouldn&#039;t matter.  We should begin by mocking it if we need to in order to keep things simple.  If later we want to supply different persistence layers then fine.  But that is not our goal.
&lt;/ul&gt;
&lt;/p&gt;
&lt;p&gt;
So let&#039;s hear some wonderful ideas.  After I get a few I&#039;ll chime in with the ones I have in mind.
&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://www.greggbolinger.com/blog/2008/11/13/1226598900000.html#comments</comments>
    <guid isPermaLink="true">http://www.greggbolinger.com/blog/2008/11/13/1226598900000.html</guid>
    <pubDate>Thu, 13 Nov 2008 17:55:00 GMT</pubDate>
  </item>
  
  <item>
    <title>Part 2 of ?: Swing Application Best Practices</title>
    <link>http://www.greggbolinger.com/blog/2008/11/12/1226502180000.html</link>
    
      
      
        <description>
          &lt;p&gt;
In &lt;a href=&#034;http://www.greggbolinger.com/blog/2008/11/11/1226423940000.html&#034;&gt;Part 1&lt;/a&gt; I introduced the need for a simple project to help demonstrate and teach Swing best practices.  Today I want to talk about areas of focus or areas in Swing development where best practices actually lend a helping hand.  How to create and add a JButton to a container is not what I think we need.  How to best handle events for a JButton might be what we should focus on.  Here is a (partial) list of areas in no particular order:
&lt;/p&gt;&lt;p&gt;&lt;a href=&#034;http://www.greggbolinger.com/blog/2008/11/12/1226502180000.html&#034;&gt;Read more...&lt;/a&gt;&lt;/p&gt;
        </description>
      
    
    
    
    <comments>http://www.greggbolinger.com/blog/2008/11/12/1226502180000.html#comments</comments>
    <guid isPermaLink="true">http://www.greggbolinger.com/blog/2008/11/12/1226502180000.html</guid>
    <pubDate>Wed, 12 Nov 2008 15:03:00 GMT</pubDate>
  </item>
  
  <item>
    <title>Part 1 of ?: Swing Application Best Practices</title>
    <link>http://www.greggbolinger.com/blog/2008/11/11/1226423940000.html</link>
    
      
        <description>
          &lt;p&gt;
Today I have been participating in a small thread on JavaRanch titled &lt;a href=&#034;http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=2&amp;t=018211&#034;&gt;Swing desktop application best practices&lt;/a&gt;.  David&#039;s question in that thread is one I remember asking years ago and in fact never got a good answer.  To this day I still look for the answer and only find it hidden deep inside existing open source projects who&#039;s code base is daunting to say the least for new developers or hidden inside a framework as generally one engineers idea of best practice.
&lt;/p&gt;
&lt;p&gt;
The communities focus over the past several years has been in web application development.  Interestingly enough, for the most part, finding answers to best practice questions regarding web development is easy.  With the rise in interest in java on the desktop and Sun doing what it thinks is right to push this surge I think now is an opportune time to try and finally start answering Swing best practice questions as a community, as an industry.
&lt;/p&gt;
&lt;p&gt;
I don&#039;t intend to try and be the pioneer here.  I don&#039;t know enough by myself to drive an effort like this.  There are more capable engineers out there.  I&#039;m here to spark some community interest.  A rally cry if you will.  So how do we do this?  Telling developers to go look at Netbeans source is not an answer.  It&#039;s too large to try and learn basic concepts of best practices.  No doubt is is full of useful patterns to learn from but finding them is tough in a code base that large.
&lt;/p&gt;
&lt;p&gt;
My idea is to start with a very small and simple open source project that is purely for learning purposes.  The code base should be overly commented.  This would be a project where seasoned engineers could lend their expertise while at the same time young developers could read and understand the code base.  So the code base needs to stay relatively small.  I envision no frameworks being used.  I believe this app should stay as streamlined for learning Swing best practices as possible. If that means reinventing a few wheels then I am ok with that.  The documentation should mention where a particular existing framework takes care of that.  However, I&#039;m open to suggestion regarding this stance.
&lt;/p&gt;
&lt;p&gt;
My nest article will cover areas of concern that I believe need to be of focus for a Swing application used for learning best practices.  I&#039;d really like some feedback here regarding the idea and to know who might be interesting in helping as well as those that would be interested is learning.
&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://www.greggbolinger.com/blog/2008/11/11/1226423940000.html#comments</comments>
    <guid isPermaLink="true">http://www.greggbolinger.com/blog/2008/11/11/1226423940000.html</guid>
    <pubDate>Tue, 11 Nov 2008 17:19:00 GMT</pubDate>
  </item>
  
  </channel>
</rss>
