logo

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.

image

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.

Comments

    • avatar
    • Darryn Sullivan
    • Thu 17 May 2012 06:20 PM

    Sometimes the fixed with font just looks better.

    Also someone had to post. If we don't post you may stop your awesome blog. :)

      • avatar
      • Jake Howlett
      • Fri 18 May 2012 03:19 AM

      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.

    • avatar
    • Nick Hopkins
    • Thu 17 May 2012 11:02 PM

    Are you doing much client work at the moment, or mainly web.

    I think I've forgotten how to programme in the client!

      • avatar
      • Jake Howlett
      • Fri 18 May 2012 03:26 AM

      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.

      Show the rest of this thread

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment:


About This Page

Written by Jake Howlett on Mon 14 May 2012

Share This Page

# ( ) '

Comments

The most recent comments added:

Skip to the comments or add your own.

You can subscribe to an individual RSS feed of comments on this entry.

Let's Get Social


About This Website

CodeStore is all about web development. Concentrating on Lotus Domino, ASP.NET, Flex, SharePoint and all things internet.

Your host is Jake Howlett who runs his own web development company called Rockall Design and is always on the lookout for new and interesting work to do.

You can find me on Twitter and on Linked In.

Read more about this site »

More Content