Sample: Swing simple text editor

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.
5 minutes

To import the sample, click the Import sample link.

This sample might require some optionally installable components. If you encounter errors or cannot find user interface options when you run the sample, ensure that you install the Java client application editor component.

After you import the sample and open it in the Java visual editor, you can run the application by clicking Run > Run as > Java Bean.


Feedback