Setting the Grid for a Visual Web JSF Page

See Also

When you create components in the they are positioned on a grid. You can determine the size of the grid and whether components move, or snap, to the nearest part of the grid when dropped in the Visual Designer. The following example shows a button snapped to a visible grid.

Image of a button lined up with the right and top lines of the grid

The following example shows a button that is not snapped to the grid.

Image of a button not lined up with the grid

To set up the grid:

  1. From the main menu, choose Tools > Options on Microsoft Windows or UNIX systems, or choose NetBeans > Preferences on Macintosh systems.
  2. Click Miscellaneous and then click the Visual Web tab.
  3. Type the new values into the corresponding fields.
  4. Click OK.
To snap an item to the grid:
  1. In the select the item.
  2. Right-click and choose Snap To Grid.
See Also
Selecting Components in a Page
Adding Components to a Visual Web JSF Page
Aligning Components
Component Tasks: Quick Reference
Options: Visual Designer

Legal Notices