You can use the New Java™ Visual
Class wizard to quickly create a visual class that you can then design
within the visual editor.
Before you begin
Before you can create a new Java visual
class, you must create a Java project
or plug-in project where you can place the visual class. A plug-in
project that is enabled for Rich Client Platform (RCP) application
development is required if you want to create a new RCP view or editor.
About this task
The wizard generates new visual classes based on a few
quick selections. For example, you can specify the toolkit or style
that you want to use (RCP, SWT, Swing, AWT, or Other), the initial
container or composite that you want the visual class to instantiate
(for example, an RCP view, an SWT composite, or a Swing JFrame), and
whether you want the visual class to be an application that includes
a public static void main(String[] args) method.
Tip: If you select the Swing Application style, the wizard generates
a Swing application that includes commonly used menus and event handlers
already built into it.
To create a new Java visual class for use in the visual editor
for Java: