Previous Next        Current Page: NeXtMidas Training / NetBeans - Part 2 (GUIs) / Using the GUI Builder / Demo / Step 6 - Using GUI Form
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)   
NetBeans - Part 1 (Setup)   
NetBeans - Part 2 (GUIs)   
   + Setting up the GUI Builder   
   + Matisse   
   - Using the GUI Builder   
      - How Does it Work?   
      - Demo   
         - Step 1 - Create GUI Form   
         - Step 2 - Edit GUI Form   
         - Step 3 - Add Widget   
         - Step 4 - Add Widget Cont.   
         - Step 5 - Final Layout   
         - Step 6 - Using GUI Form   
      - Do I need a macro?   
   + Lab1   
NetBeans - Part 3 (Profiler)   
Eclipse - Part 1 (Setup)   
Eclipse - Part 2 (GUIs)   
Primitives   
Applets & WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • Using GUI form for your macro:
    1. To use the GUI form, save it, enter NeXtMidas, and try the following:
      nM> path add train
      nM> bld graphicslab2 mcr train
      nM> graphicslab2/jsetup
      • This will add the training option tree to your NeXtMidas path.
      • Build (compile) the GUI form (graphicslab2.java) from the mcr area of the train option tree.
      • Run the Macro Graphics Lab2 using the Swing GUI form that you designed.
    2. You should get the following when running the Macros Graphics lab 2 using the /jsetup switch:
      Click image for larger view.