cs50 / sandbox

https://cs50.readthedocs.io/sandbox
30 stars 98 forks source link

Swing GUI Stopped Running #35

Open stephendgilbert opened 4 years ago

stephendgilbert commented 4 years ago

Hello. I'm not sure at all if this is where I should report this. I have used the Sandboxes for my summer Java programming classes. I just started setting up for summer, and I noticed that Java GUI programs no longer seem to work in the X-Windows "Desktop". The frame shows up, but nothing else is displayed. Here is the standard Hello World program from Oracle.

java-sandbox-gui

dmalan commented 4 years ago

Hm, thanks for reporting. We've dropped the underlying cloud provider a note to inquire!

pazz commented 3 years ago

Did you hear back from them @dmalan? I'm running into the same issue (see below). I remember vaguely that some window managers have problems with java swing. This hotfix here did not work for me in the CS50 sandbox: https://stackoverflow.com/questions/721215/how-can-i-fix-a-java-gui-program-swing-that-it-works-with-awesome-wm

2021-04-09-180147_2359x1157_scrot

I am aware that the CS50 IDE has moved on to some web VNC setup, and there I can see the Swing GUI as expected. However, that one does not run any window manager by default and guis look a but distorted..