TS 72 gaps

Revision as of 08:32, 16 August 2012 by Asenk (Talk | contribs)

Form Editor - Gaps Visualization Test Specification

Author: Adam Senk
Version: 7.2
Last update: 16/08/2012
Introduction: Layout of a container in Free Design consists of components and gaps between these components. So far only the components were visualized in the designer, which was sometimes insufficient for a good understanding of the layout. This is improved in NetBeans 7.2 where the gaps are visualized as well.
Comments:

Contents


Test suite: Enable and Disable visualization

Purpose:This is test of checkbox, that turns on/off the visualization of gaps.
Setup: Start IDE with clear userdir. Create new project, Java Application (e.g. MyApplication).In myapplication packege create a new JFrame Form (e.g. MyForm).

  1. Basic visualization
    1. Add a JButton into JFrame
    2. File:Gaps1.jpg
    • EXPECTED RESULT: Gaps are visualizated. See previous screenshot.
  1. Disable visualzition in options dialog
    1. In main menu select: Tools -> Options
    2. In Options dilaog select Java category nad GUI Builder tab.
    3. Disable "Visualize Additional Layout Information" checkbox
    4. OK
    • EXPECTED RESULT: Gaps visilazation disappear.


  1. {{testcase|Reenable gaps visualization}
    1. insert some Swing controls from pallete a change their text. The result should look like this http://netbeans.org/images_www/articles/70/java/gbcustomizer-basic/sampleform.png

      File:gb1.png
    • EXPECTED RESULT: Inserted Swing controls are placed only in one line
  2. Opening Grid Bag Layout Customizer3
    1. Invoke pop-up menu on JFrame in MyForm Design
    2. Try select "Customize Layout" from this menu

      File:gb2version71.png
    • EXPECTED RESULT: Window contains:
      Grid Area
      The Grid area is on the right side of the Customize Layout dialog box. It shows the grid layout of the components.The components in the sample form are already added but not laid out correctly.
      Toolbar
      A toolbar with five buttons and two spinners is located above the Grid area. It provides convenient access to common commands, such as undoing, redoing, padding, and previewing layout.There is also button for enabling "uniform gaps" and two spinners for gap column width and gap row height settings. This spinners are enabled if and only if the "uniform gap" button is pressed.
      Property Customizer
      The Property Customizer is positioned in the top left corner of the Customize Layout dialog box. It allows for easy modification of the most common layout constraints - Anchor, Insets,Internal Padding,Fill,Size in Grid, Position in Grid and Weights.
      Property Sheet
      The Property Sheet is located below the Property Customizer. It displays the layout constraints of the selected components.

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo