Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @author defron
- *
- */
- //java applet library
- import java.applet.*;
- //screen painter
- import java.awt.*;
- //main class for the web applet
- public class StopApplets extends Applet
- {
- /**
- *
- */
- private static final long serialVersionUID = 1L;
- //auto-called method for applet to start
- public void init()
- {
- resize(270,140);
- }
- /*
- * method called for applet termination such as when browser is closed or page is left
- */
- public void stop()
- {
- //no code needed, empty class necessary for applet functionality
- }
- /*
- * Paint public method for painting to the screen
- */
- public void paint(Graphics g)
- {
- g.drawString("What!!? Are you crazy?",60,20);
- g.drawString("", 20, 40);
- g.drawString("Java is one of the leading causes of",20,60);
- g.drawString("infections on the Internet!!!!", 40, 80);
- g.drawString("", 20, 100);
- g.drawString("You should only allow it on sites you", 20, 120);
- g.drawString("absolutely need it on.", 60, 140);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement