Undo / Redo functionality can be added to document classes in the javax.swing.text package very easily. All you need to do is add a listener for changes, and use a UndoManager to alter those changes.
[Read More]
In order to read a text file, you can use the BufferedReader class in the java.io package. The following simple class starts up,
reads a text file and prints each line to the screen, then closes the text file and exits.
[Read More]
Dialog boxes using the swing set can be created using a combination of the JOptionPane and JDialog classes. For example, to create an error box:
[Read More]