Cancel changes in a Java Swing Input window
- by Tony
I am new to Java Swing and I am creating a window which displays a list of items retrieved from an XML file that can be manipulated by the user.
The window should have a Cancel and a Save functionality implemented with buttons. While the Save functionality is straightforward (just close the window) I don't know how to implement the Cancel functionality. Does exist an "undo" function? Does anyone know how?