JSwing Pad Text Editor v 1.0
Created by: Puneet Wadhwa
Email:  pwadhwa@gmail.com
Website : http://www.puneetwadhwa.com


J Swing Pad is a simple Text Editor developed using 100 % pure Java aimed at performing simple tasks as performed by a normal Text Editor such as Windows Notepad.

It has many advanced features offered by similar professional text editing packages like:

  • Menu Bars for easy navigation
  • MS-Word like floatable, draggable graphical toolbars
  • Offers Cut/Copy/Paste/Delete popup menus on the right click of mouse and on the Menu bar and toolbar as well.
  • Facility to open/modify and save all files (in text mode)
  • Chooses 3 different background colors
  • Fully commented and easily understandable code
  • An "About" Splash screen ( as on right.. ).



Download here


The Internet is full of tutorials used for developing advanced text editors using languages such as Visual Basic. However, there are a very few resources for doing the same using Java.
My aim of writing this application was to learn the advanced features of Java Swing Package, and to share this application with fellow developers learning Java.

This text editor has been developed mostly using Swing and AWT Classes, and has been successfully tested with JDK 1.2.2, on a Pentium-II machine with 64 Mb RAM without any bugs or errors.
I also intend to develop the next version of this JSwingPad Text Editor v 2.0 wherein features like Search/Replace, Choice for any number of background colors using a Color Picker (in Java), improved functionality and also any valuable suggestions from your end are going to be implemented.

Installation instructions:

  1. Unzip all the files, and place them in a single folder using an unzipping utility such as WinZip.
  2. After unzipping you may use the Java.exe file (shipped with JDK, inside /jdk1.2.1/bin folder) to run the accompanying JSwingPad.class file
    Egg: java JSwingPad

    Optionally you may compile the source file (in case you modify something) using javac.exe file (shipped with JDK, inside /jdk/bin folder)
    Ex: javac JSwingPad.java

Known Issues

The application may slow down/hang when opening very large files. Since we use byte based streams, so this application should not be used for opening very large files.

PS: For bugs or any help with the code, please feel free to drop a note at pwadhwa@gmail.com.
I would love to hear from you about any suggestions or comments.

  Back..