simple editor

Simple Editor in Java

Submitted by mehfuza on

Introduction

This simple editor has only one menu with New, Open, Save, Exit option. It requires JMenuBar, JMenu, JMenuItem, ActionListener, File related classes. This tutorial demonstrate creation of menu and reading and writing the files. Once user clicks on open menu then Open dialog box is displayed and File is displayed in the display area. This simple editor can be created easily with following steps. File reading and writing part is similar to previous tutorial.

Implementation

Step 1: Designing the Menu The class is application so it extends JFrame.