« The Platform Ends Here | Main | Silent June »

May 29, 2008

Up to my neck in SWT GUI

Last week, I discovered, to my dismay, that I need to write my own list widgets instead of using the built-in SWT widgets. The breaking point occurred when I found that I cannot have lists with variable height rows. I decided that this is something I cannot accept in my UI. I'm a strong believer in usability.

One week later, I'm a smarter man. Building my own list was nothing short of an eye-opening experience with SWT programming. Up until now I was on the SWT expressway. Sure, it will get you from A to B in the quickest way. However, you'll be missing out on everything around you. If you want to get to know a place, you need to take the B-roads, visit the small villages and... well, metaphor exhausted. 

Looking back at the journey, here's some thoughts:

  • SWT is very complex, especially if you don't have previous experience with similar widget frameworks like Swing, AWT, etc.
  • SWT is poorly documented, considering its' complexity and magnitude. Quality information on the net is scarce. I found myself digging into the sources of SWT again and again. True, the public interfaces and methods have good Javadoc. However, the rest of the code is poorly document. It sure make things harder.
  • From the reasons above, I found that it is much quicker to take a trial and error approach than to fully understand what's going on. My "SWT enlightenment" came when I decided to ditch that approach and really understand what's going on.

Bottom line: my UI works exactly as I wanted. I took advantage of the effort and added a couple more features which I couldn't with the oh-so-limited list widgets.

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83548421753ef00e5528c1bfe8833

Listed below are links to weblogs that reference Up to my neck in SWT GUI:

Comments

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

About nWire

  • nwire logo
    nWire is an Eclipse™ Plug-in which expedites Java development by assisting the developer in navigating through the code and better understanding it.

    Learn more at nwiresoftware.com
My Photo

My Other Accounts

Delicious Digg Facebook Flickr FriendFeed Google Talk Last.fm LinkedIn Reddit Skype StumbleUpon Technorati Yahoo!

AddThis Social Bookmark Button
Blog powered by TypePad
Member since 05/2007