mlang / freedots

MusicXML to Braille Music transcription
http://code.google.com/p/freedots/
GNU General Public License v3.0
16 stars 7 forks source link

Modified FileOpenAction and FileSaveAsAction to use AWT.FileDialog on… Mac OS X #9

Closed judithhinlung closed 4 years ago

judithhinlung commented 4 years ago

Hi, I made the following changes in this pull request:

  1. Set Swing UI to use awt.FileDialog instead of JFileChooser conditionally for Mac OS X. This fixes the issue in which Mac users were unable to access files and directories when using the GUI to open and save files.
  2. To increase compatibility across OS systems, the accelerator key for the menu shortcut for opening files is changed to set using the Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() method.
  3. Refactored code in FileOpenAction.java and FileSaveAsAction.java by extracting functionality from the actionPerformed() methods into specific functions. The intent is to make the code dryer and increase readability.