Patch for IllegalArgumentException
Status: Alpha
Brought to you by:
jdomain
When starting standalone one gets
Exception in thread "main" java.lang.IllegalArgumentException:
defaultCloseOperation must be one of: DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE,
or DISPOSE_ON_CLOSE
at javax.swing.JDialog.setDefaultCloseOperation(JDialog.java:705)
at jdomain.codeprinter.FileBrowser.createDialog(Unknown Source)
at jdomain.codeprinter.FileBrowser.showDialog(Unknown Source)
at javax.swing.JFileChooser.showOpenDialog(JFileChooser.java:626)
at jdomain.codeprinter.Main.main(Unknown Source)
The attached patch fixes it.
Patch for avoiding IllegalArgumentException