Use the Java Class Wizard to create a Java class file and then use an editor such as the Java editor to edit it. The methods for doing this are explained below.
Creating a new class file
Select [Class] from the New Wizard and then use the Wizard to create a class file.
Editing a class file
Use the Java editor to edit a class file. The Java editor is a text editor with the following features:
Syntax highlighting
Uses colors and font styles (for example bold type) to highlight keywords
Content Assist or Code Assist
When code is being created, displays Content Assist (also referred to as Code Assist)
Code format
Formats source code according to the code format settings
Import support
Allows a suitable import statement to be inserted according to the classpath set in a project
Protection of an immutable source of a Java Form
Protects sections of source code that invoke information or event processing of a Java Form screen (Bean) in order to prevent it from being modified
BeanInfo definition
Defines BeanInfo for JavaBeans and adds BeanInfo information as a comment
Refer to "Java editor" in "Concepts" in the "Java Development User Guide" for details on the Java editor.