Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- import java.awt.*;
- import javax.swing.*;
- //basic applet
- public class test2 extends JApplet
- {
- //print method
- public void print(Graphics g)
- {
- super.paint(g);
- g.drawString("Black Mamba", 50, 50);
- g.drawRect(25, 25, 50, 100);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement