Previous Next        Current Page: NeXtMidas Training / NetBeans - Part 2 (GUIs) / Using the GUI Builder / Demo / Step 3 - Add Widget
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   


  • Adding Widgets to GUI Form:
    1. Widgets from the Palette window can be put on the GUI form and place at the desired location. On the Palette window, under the Beans left-click MidasDisplay.
      Click image for larger view.
      Now move your mouse anywhere over the form where you would like to place the widget and left-click to insert this widget on the form.
      Click image for larger view.
    2. The widget can be resized and moved via the mouse. Additionally it can have "sticky" properties to any of the GUI form's borders.
    3. To get NeXtMidas to hold a plot in this MidasDisplay widget, right-click on this widget on the form and select Change Variable Name and enter the ID of the NeXtMidas plot in your macro as the variable name.
      Click image for larger view.
    4. So in our case, we will name the variable "plot1" in the popup dialog because our macro defining the plot look like plot/id=plot1 ...
      Click image for larger view.
    5. Repeat the above steps for another seven MidasDisplay widgets to make a total of eight MidasDisplay widgets. Rename the widget variables to match their appropriate plot or list. Place the widgets similar to the Macros Graphics Lab 2 layout for the plots and lists. Your result should look similar to the one below.
      Click image for larger view.