Previous Next        Current Page: NeXtMidas Training / Macros - Part 2 (Graphics) / Intro to Graphics / Swing / LOOKANDFEEL
back
+ Start Here   
+ Background   
+ Common Midas Concepts   
+ Getting Started - Part 1   
+ Getting Started - Part 2   
+ Working with Files   
+ Option Trees   
+ Macros - Part 1 (Basics)   
- Macros - Part 2 (Graphics)   
   - Intro to Graphics   
      - Widget Toolkits   
      - AWT   
         - Intro to PANEL   
         - Intro to GCONTROL   
      - Swing   
         - LOOKANDFEEL   
         - LOOKANDFEEL (ctd.)   
   + GControls   
   + Lab 1 - Macro Graphics   
   + Plotting and Listing   
   + Panel Setup   
   + Lab 2 - Macro Graphics   
   + Conclusion   
   + Lab 3 - Macro Graphics   
+ NetBeans - Part 1 (Setup)   
+ NetBeans - Part 2 (GUIs)   
+ NetBeans - Part 3 (Profiler)   
+ Eclipse - Part 1 (Setup)   
+ Eclipse - Part 2 (GUIs)   
+ Primitives   
+ WebStart   
+ Maps & Imagery   
+ X-Midas Interoperability   
+ RMIF & Remoting   
+ Installing NeXtMidas   
+ Support & Maintenance   
+ File Handlers   


  • 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.

back