+ 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

7th Apr 2018, 7:07 AM
Mathijs
Mathijs - avatar
12 Answers
+ 5
You cannot. SoloLearn does not support that. I know that is a real bad thing. Makes me mad too !
7th Apr 2018, 7:08 AM
Aaron Stone
Aaron Stone - avatar
+ 6
https://code.sololearn.com/cy1eh1UBxCPe/?ref=app A JavaFX implementation, though it needs an IDE
7th Apr 2018, 8:03 AM
Tarantino
Tarantino - avatar
+ 5
Yes of course. Swing is old now. JavaFX is the future now.
7th Apr 2018, 7:12 AM
Aaron Stone
Aaron Stone - avatar
7th Apr 2018, 8:07 AM
Vikaash
Vikaash - avatar
+ 2
Sure anytime @Mathjis
7th Apr 2018, 7:42 AM
Aaron Stone
Aaron Stone - avatar
+ 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!
7th Apr 2018, 7:11 AM
Mathijs
Mathijs - avatar
+ 1
not only SoloLearn does not support. It is not supported on the Android system. Google refused to Swing in Java.
7th Apr 2018, 7:12 AM
Aidos Zhakupov
Aidos Zhakupov - avatar
+ 1
True, but in Android you can compensate that with XML
7th Apr 2018, 7:13 AM
Mathijs
Mathijs - avatar
+ 1
Mathijs Not just xml. In addition to the layout, you can also programmatically program the interface
7th Apr 2018, 7:14 AM
Aidos Zhakupov
Aidos Zhakupov - avatar
+ 1
Aidos Zhakupov is this also possible in the code playground on SL?
7th Apr 2018, 7:16 AM
Mathijs
Mathijs - avatar
+ 1
Aaron Stone would be nice to learn more about JavaFX, thanks for the tip!!
7th Apr 2018, 7:17 AM
Mathijs
Mathijs - avatar
+ 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.
7th Apr 2018, 7:19 AM
Aidos Zhakupov
Aidos Zhakupov - avatar