Assertion: applet | /r/HasProperty | public void paint(graphics g
Facets:
Source sentences:
text: First extends Applet{ public void paint(Graphics g){ g.drawString("welcome",150,150); } } Note: class must be public because its object is created by Java Plugin software that resides on the browser.
text: First extends Applet{ public void paint(Graphics g){ g.drawString("welcome to applet",150,150); } } /* <applet code="First.class" width="300" height="300
text: *; public class Simple extends Applet { public void paint(Graphics g) { g.drawString("A simple Applet", 20, 20); } }
text: *; public class GraphicsDemo1 extends Applet { public void paint(Graphics g) { g.setColor(Color.black);
text: import java.applet.Applet; import java.awt.Graphics; //Extending the Applet class public class EduApplet extends Applet{ public void paint(Graphics g){ g.drawString("Welcome
text: / public class EduApplet extends Applet{ public void paint(Graphics g){
text: *; public class SizeApplet extends Applet { public void paint(Graphics g)
text: *; public class Checkerboard extends Applet { public void paint(Graphics g) { int row; int col; int
text: *; public class FirstApplet extends Applet{ public void paint(Graphics g){ g.drawString("Welcome in Java Applet.",40,20); } }
text: import java.applet.Applet; import java.awt.Graphics; public class HelloWorld extends Applet { public void paint(Graphics g) { g.drawString("Hello World!
text: *; public class Hello extends Applet { public void paint(Graphics g) { g.drawString("Hello Applet", 20, 20); } }
text: Hello extends Applet { public void paint(Graphics g) { g.drawString("Hello Applet", 20, 20); } }
text: *; public class AppletDemo extends Applet{ public void paint(Graphics g) { g.drawString("Welcome to TutorialsPoint", 50, 50); } } /* <applet code="AppletDemo.class" width="300" height="300
text: Example of using parameter in Applet: import java.applet.Applet; import java.awt.Graphics; public class UseParam extends Applet{ public void paint(Graphics g){
text: *; public class HelloWorldApplet extends Applet { public void paint(Graphics g) { g.drawString("Hello World!
text: public class SimpleApplet extends Applet { public void paint(Graphics g) { g.drawString("A Simple Applet ",20,20); } }
text: *; import java.applet.Applet; public class Rectangle extends Applet { public void paint(Graphics g) { int inset; int rectWidth, rectHeight; g.setColor(Color.cyan); g.fillRect