Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import javax.swing.*;
  2. import java.awt.*;
  3.  
  4.  
  5.  
  6.  
  7. public class LowFrame extends Canvas
  8. {
  9. public LowFrame()
  10. {
  11. JFrame ram = new JFrame();
  12. ram.setSize(800,700);
  13. ram.setBackground(Color.white);
  14. ram.setVisible(true);
  15.  
  16.  
  17.  
  18. }
  19. public void paint(Graphics g)
  20. {
  21.  
  22. g.fillRect(22,33,44,44);
  23. g.setColor(Color.black);
  24.  
  25. repaint();
  26.  
  27. }
  28.  
  29.  
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement