|Swing DataBinding Rollback changes when cancel button is pressed [message #769880]
||Thu, 22 December 2011 15:48
| Alessio Pollero
Registered: August 2011
I have a simple JFrame with several jtextfields inside, the text property of each jtextfield is bound with a field of an object through databinding, when the user change something on the JTextField the changes are automatically reflected to the bound object property, i have the needs that when the user press a JButton (Cancel Button) every changes done by the user will be discarded.|
So i want that when the user start editing the field like a transaction will be started and depending on the user action (OK or Cancel Button) the transaction being Committed or RollBacked .
Is it possible with WindowBuilder DataBindings ? How ?
Is there a better way to achieve this desired behaviour ?
Powered by FUDForum
. Page generated in 0.01918 seconds