Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how paint method works in java like Pixel Location Width Height .?

 
Sumit Kayat
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What, exactly, is your question? What do or don't you understand?
 
Sumit Kayat
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I mean how Paint (Graphics g) Works ?
nd g.fillRect(int x ,int y width,height) too.
int x ,int y what are these nd where is (0,0) location starts on Screen ?

 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Work through this: http://docs.oracle.com/javase/tutorial/uiswing/painting/ and then read this: http://www.oracle.com/technetwork/java/painting-140037.html. I think that should answer many of your question, definitely the one about where (0,0) is.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic