baschi29 / streetlife

For educational purposes
GNU General Public License v3.0
3 stars 0 forks source link

Fix GUI Linux compability #24

Closed baschi29 closed 2 years ago

baschi29 commented 2 years ago

On Linux, all popup dialogs are blank.

Maybe caused by this: https://stackoverflow.com/questions/4740183/java-ubuntu-linux-swing-blank-window

See also: https://www.cs.fsu.edu/~jtbauer/cis3931/tutorial/ui/swing/threads.html https://stackoverflow.com/questions/38323372/java-gui-is-blank https://www.reddit.com/r/swaywm/comments/qu182b/having_weird_problems_trying_to_get_intellij_idea/

https://stackoverflow.com/questions/2484615/what-is-the-event-dispatching-thread

Probably related to this: https://stackoverflow.com/questions/14486147/java-web-start-application-shows-empty-window-on-xmonad https://github.com/Smithay/smithay/issues/389

Dachgruber commented 2 years ago

changed JDialog.type to .NORMAL, should fix this issue