XFileChooser has two actions for which other Beans can register to listen with addActionListener(): CANCEL_SELECTION, if the Cancel button is pushed, and APPROVE_SELECTION, if the Open or Save (or custom) button is pushed.
Rather than listen for events on these buttons, however, an application can simply bring up a file chooser and then check its return status using one of XFileChooser's properties:
Xfilechooser xfc = new XFileChooser; retval = xfc.show{Open,Save}Dialog(this); if (retval == xfc.APPROVE_OPTION) // open or save or whatever ...