Advertisement
Guest User

Canberk

a guest
Apr 20th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. public void paint(Graphics g) {
  2.  
  3. g.clearRect(0, 0, getWidth(), getHeight());
  4. g.setColor(Color.BLUE);
  5. g.fillOval((getWidth()-radius)/2 , (getHeight()-
  6. radius+TITLE_BAR_HEIGHT)/2, radius, radius);
  7.  
  8. g.setColor(Color.MAGENTA);
  9. g.fillRect((getWidth()-150)/3, ((getHeight()-150+TITLE_BAR_HEIGHT)/3),
  10. radius, radius);
  11.  
  12. g.setColor(Color.MAGENTA);
  13. g.fillRect(((getWidth()-80)/3)*2,
  14. (getHeight()-150+TITLE_BAR_HEIGHT)/3, radius, radius);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement