Previous Next        Current Page: NeXtMidas Training / Macros - Part 2 (Graphics) / Intro to Graphics / Widget Toolkits
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   


  • Widget Toolkits:
    • Graphical buttons, menus, test-entry boxes, etc. are all called Widgets. Since the primary use of widgets in NeXtMidas and X-Midas is to control the application, widgets are commonly nicknamed Controls.
    • Groups of similarly-designed widgets are often grouped together in a Toolkit.
    • There are three common toolkits used with Java.
      AWT (Abstract Windowing Toolkit)
      This was the first Java toolkit created by Sun Microsystems.
      Included with all Java releases (but support for AWT has been limited since Java 5).
      Swing
      This was the second Java toolkit created by Sun Microsystems.
      Supports a Pluggable Look and Feel allowing a Swing Widget to look and act like widgets from other toolkits, without altering any code.
      Included with Java 1.2 and later.
      SWT (Standard Widget Toolkit)
      This is a rival toolkit that was started by IBM and is maintained by the Eclipse people.
      SWT does not provide a Pluggable Look and Feel the way Swing does.
      SWT is not part of Java and requires a separate OS-specific download.
      Java applets using SWT will not run unless SWT has been installed on every system.
    • NeXtMidas uses a combination of AWT and Swing.
      • Until recently, NeXtMidas was required to support Java 1.1 and had to use AWT.
      • NeXtMidas is slowly migrating from AWT to Swing.
      • Since many NeXtMidas applications are deployed as applets, SWT is not an option at this time.

back