Native Look and Feel With Java Swing Windows
A while back I talked about how I'd been using Java Swing components within code running inside the Lotus Notes client to "extend its interface" however I liked.
As an example, I showed this progress-bar-enabled output window:
It works but looks a bit too Java-ery for my liking. Too obviously not a standard part of the client itself. It just jarred with me ('scuse the Java pun there).
Well, if you add the following line in to the Java code before opening the window above:
UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName() );
You get something that looks like this. All together a bit better looking.
When this appears after clicking a button inside a database inside the Notes client you can be forgiven for thinking it was a natural part of the Notes UI. Almost.
Sometimes the fixed with font just looks better.
Also someone had to post. If we don't post you may stop your awesome blog. :)
Reply
A sympathy post? ;-)
Don't worry, I know that posts like this one don't really prompt much discussion.
Although I do use the number (or lack) of comments to gauge interest in a topic and whether it's worth talking more about it.
If it did get to the point where I got 0 comments on everything I wrote, I probably would quit though.
Reply
Are you doing much client work at the moment, or mainly web.
I think I've forgotten how to programme in the client!
Reply
Mainly web but I just happen to have a job on at the moment which means I had to return to client development for the first time in years (10!). I'll talk more about that in the next post.
I'd forgotten how to program in the client too. I'd also assumed that I could use Java code in the client (maybe you can and I missed something?). Not wanting to learn client development all over again or struggle trying to get LotusScript to do that I needed I opted to write a Java Swing-based interface. The more I get in to this approach the more powerful I realise it is. More later today on that.
Reply
Show the rest of this thread