Packages used are
-
Java Swing Package
-
Java AWT Package
To run this application, follow the steps below:
- Open command prompt window
- Go to the directory where you saved this java program (editor.java)
-
Type
javac editor.java
and press enter to compile the code -
Now, type
java editor
to run the application
A new window will open and then you can type any notes you like