+ 2
GUI in java
I would like to make a GUI in the code playground on SL. But every time I program something graphical I got a "Time limit exceeds" error. Some help here would be much appreciated. Link to my code: https://code.sololearn.com/cdCCh3KWd8an/?ref=app
12 odpowiedzi
+ 5
You cannot. SoloLearn does not support that. I know that is a real bad thing. Makes me mad too !
+ 6
https://code.sololearn.com/cy1eh1UBxCPe/?ref=app
A JavaFX implementation, though it needs an IDE
+ 5
Yes of course. Swing is old now. JavaFX is the future now.
+ 3
https://code.sololearn.com/WJ9QOJ0fEXTj/?ref=app <= Java Keywords
+ 2
Sure anytime @Mathjis
+ 1
I hope they will do something about it, with HTML they have a graphical output pane in the code playground that is really nice. Java is so much more then a text output to your console!! So it would be nice to have something like that for java too!
+ 1
not only SoloLearn does not support. It is not supported on the Android system. Google refused to Swing in Java.
+ 1
True, but in Android you can compensate that with XML
+ 1
Mathijs Not just xml. In addition to the layout, you can also programmatically program the interface
+ 1
Aidos Zhakupov is this also possible in the code playground on SL?
+ 1
Aaron Stone would be nice to learn more about JavaFX, thanks for the tip!!
+ 1
Mathijs No. Here it is not possible. There are special IDEs. Also, the interface of the Android program is displayed only in the program. That is, in the apk file. You can not just write the Android interface and show in the console or somewhere else.