Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.*;
- import javax.swing.*;
- public class StarSquare extends JApplet {
- public void paint(Graphics g){
- super.paint(g);
- g.drawString( "*" , 10 , 100 );
- g.drawString( "*" , 100 , 10 );
- g.drawString( "*" , 10 , 10 );
- g.drawString( "*" , 100 , 100 );
- g.drawRect( 10, 10, 90, 90);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement