0

Usage of the Java GUI on the Code Playground

Is it somehow possible to use Java GUI functionalities in the frame work of Code Playgroung interface? For instance JFrame?

2nd Apr 2018, 8:45 AM
Vladimir Filippov
Vladimir Filippov - avatar
4 Respuestas
+ 8
GUI libraries won't be able to display anything in the Code Playground. You can use them, but the CP would just help to find any errors in your code. Thus, JFrame will not display a window in the CP and hence you cannot see what's printing to the screen...
2nd Apr 2018, 9:05 AM
Dev
Dev - avatar
+ 7
Vladimir Filippov No output is because of the same (no window display) reason. Time limit exceeded is because it takes whole of its time to display the output, and still fails... Assume the following code snippet, JFrame frame = new JFrame("FrameDemo"); If I change JFrame to jFrame, the CP will tell me that's an error. So, that's the only use! :\
2nd Apr 2018, 9:38 AM
Dev
Dev - avatar
+ 1
OK! Thank you! I tryed to implement some JFrame class, but Code Playground returns only "No output." or "Time limit exceeded." in case I try to visualize the Frame.
2nd Apr 2018, 9:19 AM
Vladimir Filippov
Vladimir Filippov - avatar
0
Yes, it's clear. Thanks for the explanation.
2nd Apr 2018, 9:53 AM
Vladimir Filippov
Vladimir Filippov - avatar