Fixed dialog dimension issues on Linux
Parented dialogs to the main JFrame