Step 01

Building a Java text editor

About this tutorial

Overview

This step-by-step tutorial builds a Java application in JBuilder called "Text Editor" which is a simple text editor capable of reading, writing, and editing text files.

This text editor will be able to set the text color, as well as the background color of the text editing region. In the JBuilder Professional and Enterprise versions of the tutorial, it will also be able to set the text font.

The tutorial takes approximately two hours to complete.

What this tutorial demonstrates

Some steps in this tutorial are specific to JBuilder Professional and Enterprise editions. This is noted at the top of those steps.

The Text Editor tutorial uses the Project and Application wizards to create the project. Then it shows you how to use the visual design tools, modify the UI design, hook up events, and edit source code. It steps you through handling events for commonly used components and tasks, such as menu items, a toolbar, a text area, and system events. It contains specific examples that show you how to do the following:

To see the complete source for the TextEditor sample, open the project:

To navigate this tutorial, click the forward and backward buttons at the top or bottom of each step. Click the Home button to go back to the beginning of the tutorial.

Step 01