Step 01

About this tutorial

Overview

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

This text editor will also be able to set the text font and color, as well as the background color of the text editing region.

The tutorial takes approximately two hours to complete.

Note: We recommend working from the online version of the tutorial, as it may be more up to date than the printed one. You can use the Print button on the JBuilder Help Viewer to print out each page of the tutorial.

What this tutorial demonstrates

The TextEdit tutorial uses the Project and Application Wizards to create the project. Then it shows you how to use the visual design tools, together with source code editing, to design the UI and hook up events. It steps you through handling events for commonly used components and tasks, like menu items, ButtonBar, TextArea, and system events. It contains specific examples that show you how to do the following:

To see the complete source for the TextEdit sample, open the project

samples\borland\samples\tutorial\TextEdit\TextEdit.jpr

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

Step 01