Current Page: NeXtMidas Training Macros - Part 2 (Graphics) Intro to Graphics Swing LOOKANDFEEL
| The `LOOKANDFEEL` Command: Swing uses a Pluggable Look and Feel (PLAF) that allows a program to change how the graphics appear and behave. Swing's PLAF concept allows the look and feel to be changed at runtime without modifying any of the code. The `LOOKANDFEEL` command is used to change the look and feel. The `LOOKANDFEEL` command takes in the name of the PLAF to use. Calling `LOOKANDFEEL` with no arguments lists all of the look and feels available on the local system. Note: Some PLAFs are available on all platforms (e.g. "Metal" or "CDE/Motif"), but some are not (e.g. "Windows").
Don't Make This Mistake:
The look and feel setting is a global one and should be set prior to bringing up any graphics. Changing the look and feel after graphics are up may have unpredictable results.