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?
4 Answers
+ 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...
+ 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! :\
+ 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.
0
Yes, it's clear. Thanks for the explanation.