Assertion: applet | /r/HasProperty | public void paint(graphics grp
Facets:
Source sentences:
text: *; import java.applet.Applet; public class GrpStringEx extends Applet { public void paint(Graphics grp) { grp.setColor(Color.blue); grp.drawString( "welcome-to-appletworld-in-java" , 150 , 150 ); } } Output
text: *; import java.applet.Applet; public class GrpRectEx extends Applet { public void paint(Graphics grp) { grp.setColor(Color.blue); grp.drawRect( 100 , 50 , 150 , 150 ); } } Output
text: *; import java.applet.Applet; public class GrpRectEx extends Applet { public void paint(Graphics grp) { grp.setColor(Color.blue); grp.drawRect( 100 , 50 , 150 , 150 ); grp.fillRect( 100 , 50 , 150 , 150 ); } } Output
text: *; import java.applet.Applet; public class GrpOvalEx extends Applet { public void paint(Graphics grp) { grp.setColor(Color.blue); grp.drawOval( 100 , 50 , 150 , 150 ); grp.drawArc( 100 , 150 , 150 , 150 , 0 , 180 ); } } Output
text: *; import java.applet.Applet; public class GrpOvalEx extends Applet { public void paint(Graphics grp) { grp.setColor(Color.blue); grp.fillOval( 100 , 50 , 150 , 150 ); grp.setColor(Color.red); grp.fillArc( 100 , 150 , 150 , 150 , 0 , 180 ); } } Output