Cancel changes in a Java Swing Input window

Posted by Tony on Stack Overflow See other posts from Stack Overflow or by Tony
Published on 2010-05-28T14:53:40Z Indexed on 2010/05/28 15:01 UTC
Read the original article Hit count: 198

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about java

Related posts about swing