I've done a lot of Java programming in my life. Most of the code was dedicated for one specific use, therefore you wouldn't make any use of it. But there are some portions of code that you might find useful. This is a place to see it and later on, if you like it - download it (sources and compiled).
For a starters, long time ago I've written OutlookBar. A component similar to the one you can find in Microsoft Outlook. It's written in a very dirty way (note, it was long time ago), and is not documented, but the use is so straightforward you shouldn't have any problems with it. For a demo go here.