Project: Creating a Java Text Editor
Author: JBuilder team
Company: borland.com
Description: Creating a simple Java Text editor application
This tutorial steps you through creating a real Java application, including simple UI design and hooking up events to buttons and menus. The tutorial takes approximately two hours to complete.
With this tutorial, you will build a simple Java application in JBuilder called Text Editor
, which is a text editor capable of reading, writing, and editing text files. It will also be able to set the text font and color, as well as the background color of the text editing region.
The tutorial contains specific examples that show you how to do the following:
JFileChooser
dialog box to allow the user to select a file.
JTextArea
.
JColorChooser
and the FontChooser
dialogs.
To run the text editor, open TextEditor.jpr
in JBuilder and choose Run|Run Project.