TOC PREV NEXT INDEX



Create the layout


Our thermostat has a very simple layout.

  1. From the 'Layouts' page on the Object Palette, choose 'Bottom' and click once in the Empty Space in the Working Model.
  2. Change the Bottom Layout's horizontal gap to 15.
  3. Choose the 'Beans' page on the Object Palette. Here you will find any visual JavaBeans which you have imported.
  4. Select Knob from the 'Beans' page, and click once in the Bottom layout which you previously added.
  5. Choose the 'Swing 1' page on the Object Palette.
  6. Select Progress and click once in the Bottom Layout.
  7. Select Label and click once in the Bottom Layout.
  8. From the Part List at the top of the Composer window, choose 'bottom1'. Uncheck 'Show Empty Panel' to get rid of the last Empty Space.

We will now set up some of the properties for the parts which we have just added.

  1. Click once on the progress bar.
  2. Set the orientation to 'vertical'.
  3. Enter 73 for the current value.
  4. Enter 32 for the minimum value.
  5. Enter 212 for the maximum value.
  6. Choose the progress bar's 'Visual' property page, and change the foreground color to red.
  7. Click once on the label.
  8. Change the label's text to "degrees Fahrenheit".

Data Representations, Inc.
http://www.datarepresentations.com
support@datarepresentations.com
sales@datarepresentations.com
TOC PREV NEXT INDEX