Page 4 - ADVANCED JAVA PROGRAMS
P. 4

str=str.substring(1,str.length());


               str=str+ch;


               }catch(InterruptedException e){}

               }}


               public void paint(Graphics g){


               g.drawRect(1,1,300,150);

               g.setColor(Color.yellow);


               g.fillRect(1,1,300,150);


               g.setColor(Color.red);

               g.drawString(str,1,150);


               }}


               HTML CODING:


               <html>


               <body>

               <head><title>Java Applet</title>


               <Applet CODE="samplebanner.class"Height=150 width=150>


               you can not see this brillant java applet

               </applet>


               </body>
   1   2   3   4   5   6   7   8   9