The Component Inspector contains a tree view of the components on your current form. This includes visual components and containers, such as buttons, labels, menus, panels, and so on. It can also include non-visual components, such as timers and data sources.
By default, the Component Inspector appears on the right side of the Form Editor window.
The root node of the Component Inspector
contains two
main subnodes of components in the form's class:
The tree view of the Component Inspector is duplicated in the Explorer.
The lower panel of the Component Inspector displays the property sheet for the object selected in the tree view. You use the property sheet to examine and adjust properties of your components and layout managers, manage component event handlers, and define how code is generated. The tabs at the bottom of the Component Inspector determine the set of properties displayed.
The difference between the Properties and Other Properties tabs in the Component Inspector 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.
When you set or modify the component properties, the changes are reflected in the Form Designer 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 Designer and in the code in the Source Editor.
See also | |
---|---|
Editing Component Properties
Form Editor Form Designer Managing Component Events Working With Source Code |