TOC PREV NEXT INDEX



Create the layout


Our application has a very simple layout.

  1. From the 'Layouts' page on the Object Palette, choose 'Border' and click once in the Empty Space in the Working Model.
  2. Select JScrollPane (Scroll) from the 'Swing 2' page, and click once in the Center of the Border Layout. a 'viewport' will appear in the Center.
  3. Select Table from the 'Swing 2' page, and click once in the viewport in the Center of the Border Layout.
  4. From the 'Layouts' page on the Object Palette, choose 'Flow' and click once in the Empty Space in the 'North' of the Border Layout.
  5. Select Label from the 'Swing 1' page, and click once in the Flow Layout.
  6. Select TextField from the 'Swing 2' page, and click once in the Flow Layout.
  7. From the Part List at the top of the Composer window, choose 'border1'. Uncheck 'Show Empty Panel'. Do the same for 'flow4'.

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

  1. Click once on jLabel5.
  2. Change the JLabel text to "Enter a query:".
  3. Click once on jTextField6.
  4. Change the Object name to query.
  5. Erase any text in JTextField text.
  6. Change the Number of columns to 30.
  7. Select 'jTable3' from the Part List. Change its Object name to 'table'.

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