Apr
30
2005

Progress on SWT Port of PasswordSafe

Things are going well on my little porting project of PasswordSafe to SWT. Here are some grabs of the screenshots so far running on Linux:

SWT on Linux Main Window

SWT on Linux Edit Dialog

As a point of comparison, here’s the original Win32 application that I’ve been trying to clone:

Windows Main Window

Windows Edit Dialog

First time I ran it on Linux, I found that the SWT Dialog object was completely blank. Turns out I wasn’t calling shell.layout() before calling shell.open(). Seems that the Win32 version is more forgiving.

The power of FormsLayout is just awesome. I started trying to do the edit dialog layout with a grid but quickly ended up with five billion composites to get all the alignment working. In the end, the edit dialog is a single formlayout (plus a single grid inside that little groupbox). Much simpler to manage.

Anyways, the open, save, copy/clear clipboard are all done. Next step is to get that add/edit dialog functioning. Found a neat little Java class for a cross platform browser launcher too, that works just great on Windows and Linux (and apparently Mac, too. But I haven’t tested there yet).

About the Author: Glen Smith

Leave a comment

Glen Smith

About Glen

Co-author Grails in Action