up previous next contents
Up: java-on-mac Previous: Introduction Next: Identifying that you're running   Contents

Running the native system look and feel

I'm going to start with an easy one to get warmed up. The first thing I need to do is tell my Java/Swing application to use the system look and feel. This is accomplished easily with this code:

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

That's pretty standard stuff you should already be doing for any platform, so let's move on.