Original message: http://www.eros-os.org/pipermail/e-lang/2008-March/012564.html Fri Mar 7 00:03:05 EST 2008
javax.swing.ActionEvent.getActionCommand() appears to be necessary to tell which of the Cancel or Open/Save buttons the user pressed in a JFileChooser.
Without this method (or a specialized sugaring on JFileChooser) I can't see any way to correctly use JFileChooser.
(In particular, note that the caplet powerbox --
src/esrc/com/skyhunter/e/security/powerboxControllerMakerAuthor.emaker
-- fails to make the distinction, which is a dangerous bug: the selected file, if any, will be granted to the caplet even though the user intended to cancel.)