+ 1
Why can't we make gui apps using Java on code playground?
Java Gui
4 Respostas
+ 3
Disclaimer: My explanation below is based on pure speculation.
To expand on the answer posted by @limitless:
Code playground isn't actually compiling and running the code directly on your computer or device. Rather, the code is likely passed off to a proxy server where it can be compiled and run. The output is then sent back to the browser to be displayed back in code playground.
This process works well for Code Playground because it involves passing text back and forth between the browser and servers that are managed by SoloLearn. These managed servers would be properly configured and setup with the JVM and JDK to allow for this process to work.
A GUI App in Java would not be as simple, practical, or likely possible because it would require access to your local computer or device. This would also require your local computer or device to be properly configured with the correct JDK. However, none of this access would be possible without special programs being installed as plugins in your browser with admin permissions to your system to do everything required to support a GUI App in Java.
Imagine the logistical and security challenges this would be - ultimately making this very impractical to consider.
+ 4
Not just that, Sololearn's playgrounds work on a server. Your device/account sends a bit of data to the server and they send it back. It's a 1 way ticket.
Thus keeping a "form" open on your phone will be very hard and use a lot of traffic. They should also then create tools to apply forms to android.
The only reason why we can SEE HTML, CSS, JS and PHP Code in Playgrounds is because every phone supports web views.
+ 2
Simply put, it would be the worst idea in the world to allow the public to openly create whatever programs they wanted. :D
+ 2
And don't forget, there are people (me for example) that are on slow connection, I mean, even with Code Playground as it is now, time limit excess is common, imagine the amount of network traffic transferred for creating GUI stuffs, I'd probably and entirely just stay away from it.
And not to mention the burden on SL's servers, we might as well be crashing them from overload of network traffic from what I figure millions of users.
Just get an IDE of your choice, install it on a computer, and off you go, I think it's better for the bigger picture here.