bladecoder / bladecoder-adventure-engine

Classic point and click adventure game engine and editor
Apache License 2.0
603 stars 65 forks source link

Replaced Swing file chooser by JavaFX one #7

Closed Arcnor closed 9 years ago

Arcnor commented 9 years ago

The existing file choosers have two problems:

  1. They block the UI very often (at least on Mac & Linux, but I'm sure this will happen on Windows too), because the're not being run from the EDT. This can easily be solved by using SwingUtilities.invokeLater for example.
  2. They look awful :D. This can be solved by styling Swing, or by replacing them (the option I took).

JavaFX dialogs are the native ones of the platform (or similar; on Ubuntu you get the normal GTK one instead of the Unity one, but still looks very good) so they look way better IMHO :).