Options: Visual Web Tab
See Also
Use this tab to configure and modify general Visual Designer default settings. You can access this tab by choosing Tools > Options on Microsoft Windows or UNIX systems, or choosing NetBeans > Preferences on Macintosh systems, clicking Miscellaneous, and then the Visual Web tab.
You can change the following:
- Target Browser Window. Sets the size of the target browser used in the Visual Designer. The default is set to Any Browser. For more information, see the description of the Target Browser pop-up menu in About the Visual Designer.
- Default Font Size. Sets the default font size for pages opened in Java EE projects in the Visual Designer. The default value is 16, a common size used in web browsers. For design experience that more closely matches the runtime rendering of your applications, you can set this value to match what you see in web browsers that your applications are likely to run in.
- This setting affects only Java EE projects, because the components used by those projects have relative font sizes. Projects that use J2SE 1.4 or earlier have components that use absolute font sizes, and those are not affected by this setting.
- Grid Height. Sets the grid height. The default grid height is set to 24
- Grid Width. Sets the grid width. The default grid width is set to 24.
- Show Grid. If selected, a grid is displayed in the Visual Designer.
- Snap to Grid. If selected, components you add or move in the Visual Designer are positioned on the nearest grid lines. For more information, see Setting the Grid.
You can also change the way data providers and RowSets appear in the IDE by changing the following:
- Suffix for Data Providers. The IDE names a newly created data provider by adding the value of this option to the database table name. You can change the default suffix,
DataProvider
.
- Suffix for RowSets. The IDE names a newly created rowset by adding the value of this option to the database table name. You can change the default suffix,
RowSet
.
When you drag and drop a database element onto a Visual Web JSF page, the IDE creates a cached rowset data provider. The following properties control the rowset to which the IDE binds the data provider:
- Create RowSets in Session. This option is selected by default. If selected, when you drag and drop a database table on a page or a request bean, the IDE creates a rowset in the project's
SessionBean
, making the table available for an entire user session, which is usually the desired behavior. If this setting is not selected, the IDE creates the rowset where you drop the table, such as the page bean for the page on which you drop the table.
- Check for Duplicate RowSets. This option is selected by default. If selected, when you drag and drop a database table onto a Visual Web JSF page or a request bean, the IDE checks for other rowsets that are based on the same table. If a matching rowset exists, the IDE displays a message asking if the new cached rowset data provider should reuse the existing rowset or create a new rowset. If this setting is not selected, the IDE automatically creates a new rowset.
- Prompt for Data Source Name. This option is unchecked by default. Check this option if you want to be able to name a data source when you drag and drop the data source onto a Visual Web JSF page. This is useful if your project has more than one data source.
- See Also
- Using the Options Window
- Add New Data Provider with Rowset Dialog Box
Legal Notices