0

Why this doesn't execute..?

import java.applet.*; import java.awt.*; //<APPLET CODE= test HEIGHT= 400 WIDTH= 400></APPLET> public class test extends Applet { public void paint(Graphics g) { g.drawString("Lokik saxena welcomes you", 100, 100); } }

20th May 2018, 3:44 AM
harsh Saxena :-> " Lokik "
5 Answers
+ 9
Code Playground does not support GUI programming for Java.
20th May 2018, 3:48 AM
Hatsy Rei
Hatsy Rei - avatar
+ 5
The solution is to run it on an offline IDE on your computer, instead of Code Playground.
20th May 2018, 4:01 AM
Hatsy Rei
Hatsy Rei - avatar
+ 2
i just displays that welcome string at the point 100px away from top and left boundaries if you want to see the output you have to compile it with javac and run it with appletviewer command in your local machine as said earlier that SL doesn't support Gui with java
20th May 2018, 5:15 AM
Uday
Uday - avatar
0
so whats the solution to execute it
20th May 2018, 3:51 AM
harsh Saxena :-> " Lokik "
0
that's a tough one rather I start executing it online
20th May 2018, 4:02 AM
harsh Saxena :-> " Lokik "