12.2 Java’s Nimbus Look-and-Feel

A GUI’s look consists of its visual aspects, such as its colors and fonts, and its feel consists of the components you use to interact with the GUI, such as buttons and menus. Together these are known as the GUI’s look-and-feel. Swing has a cross-platform look-and-feel known as Nimbus. For GUI screen captures like Fig. 12.1, we’ve configured our systems to use Nimbus as the default look-and-feel. There are three ways that you can use Nimbus:

1. Set it as the default for all Java applications that run on your computer.

2. Set it as the look-and-feel at the time that you launch an application by passing a command-line argument to the java command.

3. Set it as the look-and-feel programatically in your application ...

Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.