This sample is a single Java class that demonstrates a simple plain text editor designed in the Java visual editor using Swing components. The text editor is built as a JFrame with a JContentPane that uses BorderLayout as the layout manager.
To import the sample, click the Import the sample link. The New Example Java Visual Class wizard opens. Enter the location of an existing Java project, and specify the package where the Java class will be imported.
After you import the sample and open it in the Java visual editor, you can run the application by clicking
.