Use the New Property Editor dialog box to create a special editor to edit a property in your JavaBean, or to specify a custom property editor you created for the bean.
Using the New Property Editor dialog box, you can create property editors that are string lists, string tag lists, and integer tag lists. To create other custom property editors, you must write the source code yourself. Then you can use the New Property Editor to specify the custom property editor as the editor for the property.
To display this dialog box,
Specify the name of the property editor class. It should have the same name as the property it is going to edit with Editor appended. For example, if your property name is price, the editor name should be PriceEditor.
Choose the type of editor. These are your choices:
The Editor Details section of the dialog box varies, depending on the Editor Type chosen.
Add Entry
Click Add Entry to add a row to grid below. Within the grid, type in one of the entries you want to appear in list of strings the user sees.
Remove Entry
Click Remove Entry to remove the selected row in the grid below.
Add Entry
Click Add Entry to add a row to grid below. Under Resource String, type in one of the entries you want to appear in list of strings the user sees. For the Java Initialization String, type in the code you want JBuilder to use in the code it generates.
For example, if the Resource String is Black, the Java initialization code might be one of these:
Note: If you want to include a string in Java initialization string, put quotation marks(") before and after the string, as if you were entering it in source code.
Remove Entry
Click Remove Entry to remove the selected row in the grid below.
Add Entry
Click Add Entry to add a row to grid below. Under Resource String, type in one of the entries you want to appear in list of strings the user sees. Under Integer Value, enter the integer value. For the Java Initialization String, type in the code you want JBuilder to use in the code it generates.
For example, if the Resource String is Left, the Java initialization code might be FlowLayout.LEFT.
Note: If you want to include a string in Java initialization string, put quotation marks(") before and after the string, as if you were entering it in source code.
Remove Entry
Click Remove Entry to remove the selected row in the grid below.
Custom Editor Name
Enter the name of the custom editor you created to edit the property.
Support paintValue()
Check this option if your custom editor component paints itself.
For more information about creating property editors, see Creating a property editor.