Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1. protected void paintComponent(Graphics g) {
  2.         g.setColor(Color.red);
  3.         g.drawLine(0, getHeight() / 2, getWidth(), getHeight() / 2);
  4.         g.setColor(Color.magenta);
  5.         g.drawRect(30, 50, 80, 90);
  6.         g.fillRect(30, 50 + getHeight() / 2, 80, 90);
  7.  
  8.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement