<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>andthennothing.net: SWT</title>
  <subtitle type="html">&amp;ldquo;first there was a three-legged monkey...&amp;rdquo;</subtitle>
  <id>tag:andthennothing.net,2005:Typo</id>
  <generator uri="http://typo.leetsoft.com" version="4.0">Typo</generator>
  <link href="http://andthennothing.net/xml/atom10/article/260/feed.xml" rel="self" type="application/xml+atom"/>
  <link href="http://andthennothing.net/archives/2002/06/16/swt" rel="alternate" type="text/html"/>
  <updated>2005-12-18T03:19:08+00:00</updated>
  <entry>
    <author>
      <name>Jonas Bengtsson</name>
      <email>jonas.b@home.se</email>
    </author>
    <id>urn:uuid:125408d6-d5d2-41c7-a6e2-5f8d1d163872</id>
    <published>2002-06-16T14:35:53+00:00</published>
    <updated>2005-12-18T03:19:08+00:00</updated>
    <title>SWT</title>
    <link href="http://andthennothing.net/archives/2002/06/16/swt" rel="alternate" type="text/html"/>
    <content type="html">&lt;p&gt;A couple of days ago I started developing my own &lt;span class="caps"&gt;RSS&lt;/span&gt; feed aggregator. I know that there exist a lot of those, but there is only one of the aggregators I have tried that fits my needs, namely &lt;a href="http://www.feedreader.com"&gt;Feedreader&lt;/a&gt;. But since it&amp;#8217;s not open source I cannot do the changes I want to. I also wanted to learn a bit more about &lt;span class="caps"&gt;SWT&lt;/span&gt; and &lt;span class="caps"&gt;XML&lt;/span&gt; handling.&lt;br /&gt;&lt;br /&gt;&lt;span class="caps"&gt;SWT&lt;/span&gt; is a &lt;span class="caps"&gt;GUI&lt;/span&gt; framework that is part of the open source project &lt;a href="http://www.eclipse.org"&gt;Eclipse&lt;/a&gt;. What makes &lt;span class="caps"&gt;SWT&lt;/span&gt; special is that it&amp;#8217;s a &lt;span class="caps"&gt;GUI&lt;/span&gt; framework that uses native widgets. That way it looks exactly like the rest of the applications on the different platforms, while still being cross-platform. It is really great (especially the &lt;span class="caps"&gt;IDE &lt;/span&gt;Eclipse that is part of the same project) and makes me believe in Java for desktop applications. I really dislike Swingmostly since it hangs my computer, but also since the L&amp;#38;F is quite strange and it is really slow.&lt;br /&gt;&lt;br /&gt;However, &lt;span class="caps"&gt;SWT&lt;/span&gt; is not perfect. It is quite young so it doesn&amp;#8217;t support the things you expect. For instance, it seems like you can&amp;#8217;t change the fonts used in lists. I want the unread entries to be bold, but that seems impossible. Or not exactly impossible, since I learned today that there is a workaround so you can render the text, with arbitrary appearance, into an image and show the image in the list. But it&amp;#8217;s not the kind of workaround I would do (if I weren&amp;#8217;t very desperate). I guess I have to use different icons to show the different states until &lt;span class="caps"&gt;SWT&lt;/span&gt; supports what I want to do.&lt;br /&gt;&lt;br /&gt;Another problem is that it doesn&amp;#8217;t include any browser-like widget. There is some support to make &lt;span class="caps"&gt;HTML&lt;/span&gt; into plain text and show it that way, but I need support for link and images. I think it&amp;#8217;s possible to, on Windows, use Internet Explorer, but that would ruin the cross-platform compatibility. That is no problem for me, since I normally only use Windows, but it would be neat to achieve a cross-platform solution (maybe I will &lt;a href="http://hem.passagen.se/zanoi/blog/2002_06_01_archive.html#77624688"&gt;switch&lt;/a&gt; in the future :&lt;del&gt;) ). But there is another possibility: &lt;a href="http://www.mozilla.org"&gt;Mozilla&lt;/a&gt;. There is a Java &lt;span class="caps"&gt;API&lt;/span&gt;, called &lt;a href="http://www.mozilla.org/projects/blackwood/webclient/"&gt;Webclient&lt;/a&gt;, for using the browser component of Mozilla in a Java application. But to little surprise it uses &lt;span class="caps"&gt;AWT&lt;/span&gt;, which is quite a problem since I don&amp;#8217;t think you could use &lt;span class="caps"&gt;AWT&lt;/span&gt; and &lt;span class="caps"&gt;SWT&lt;/span&gt; simultaneously. To conclude, I have two options: 1) use Internet Explorer and thus losing the cross-platform property. 2) port Webclient to &lt;span class="caps"&gt;SWT&lt;/span&gt;. I&amp;#8217;m not sure which approach I will choose.&lt;br /&gt;&lt;br /&gt;Moreover, I have just started working on the &lt;span class="caps"&gt;GUI&lt;/span&gt;, I have not yet read a single feed using my application. And I don&amp;#8217;t have so much time to work on this project. Hence, I estimate that I will be done somewhere around 2015. Hopefully I still have the need for a feed aggregator at that time :&lt;/del&gt;)&lt;/p&gt;</content>
  </entry>
</feed>
