Sun Java Studio Creator 2 – Online Help
 

Setting Component Properties

See Also | Tutorials

A property determines how a component looks and behaves; for example, a button has a color property. Properties can be set in the Properties window, in the Java source code, or in the JSP source code.

To set component properties visually:

  1. In the Design view of the Visual Designer or in the Outline window, select the component.
     
  2. In the Properties window, set the properties.
     

To set component properties in the JSP source code:

  1. In the Visual Designer, select the JSP button at the top of the page.
     
  2. In the JSP Editor, edit the code that corresponds to your component.
     

To set component properties in the Java source code:

  1. In the Visual Designer, select the Java button at the top of the page.
     
  2. In the Java Editor, edit the code that corresponds to your component.
     
See Also
About Components
Common Component Properties
About Property Methods
Using Cascading Style Sheets
Component Tasks: Quick Reference
Properties Window
Binding Component Properties
Tutorials
Delving Into Components Tutorial
 
 
 
Legal Notices. Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Close