The Component Inspector contains a tree view of the components on your current form, including buttons, menus, layout managers, and nonvisual components such as timers.
The Component Inspector is displayed by default when you are in the GUI editing workspace. If the Component Inspector has been closed, you can redisplay it by double-clicking a form node in the Explorer.
The lower panel of the Component Inspector displays the property sheet for the object selected in the upper pane. You use the property sheet to examine and adjust properties of your components, manage component event handlers, and define how code is generated.
When you set or modify the component properties, the
changes are reflected in the Form window and the generated source code. For example,
if you have a JLabel
component on your form and and you change its
text property, you will see the new text on the label in the Form window and in
the code in the Source Editor.
The toolbar of the property sheet lets you choose how to display the properties or to display the Customizer dialog box. The first three buttons on the property sheet toolbar specify how the properties are displayed: unsorted, sorted alphabetically, or sorted by property value type (int, string, java.awt.Color, javax.swing.Icon, and so on). Use the fourth button to display only editable properties. Click the right-most button to display a Customizer dialog box for advanced customization of certain objects, such as the GridBag Customizer for GridBagLayout objects.
![]() |
The difference between the Properties and Other Properties tabs is that the Properties tab displays the most commonly used properties. The division of properties between these tabs is determined by the author of the bean whose properties are being displayed, as described in BeanInfo Editor Dialog Box. |
See also | |
---|---|
Editing Component Properties
Form Editor Managing Component Events Working With Source Code |