Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void paint(Graphics g) {
- g.clearRect(0, 0, getWidth(), getHeight());
- g.setColor(Color.BLUE);
- g.fillOval((getWidth()-radius)/2 , (getHeight()-
- radius+TITLE_BAR_HEIGHT)/2, radius, radius);
- g.setColor(Color.MAGENTA);
- g.fillRect((getWidth()-150)/3, ((getHeight()-150+TITLE_BAR_HEIGHT)/3),
- radius, radius);
- g.setColor(Color.MAGENTA);
- g.fillRect(((getWidth()-80)/3)*2,
- (getHeight()-150+TITLE_BAR_HEIGHT)/3, radius, radius);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement