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); } }
5 Answers
+ 9
Code Playground does not support GUI programming for Java.
+ 5
The solution is to run it on an offline IDE on your computer, instead of Code Playground.
+ 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
0
so whats the solution to execute it
0
that's a tough one rather I start executing it online