Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Graphichs problem

 
memati bas
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
I do not understand the main and fundamental usage of Graphics class.
For example, when we use this class's instance as a parameter then we can draw smth but where and why ??

Thanks
 
memati bas
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that the main problem is that I also do not understand the main purpose of repaint method.
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take the graphics tutorial: http://java.sun.com/docs/books/tutorial/2d/index.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic