This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Java in General and the fly likes how paint method works in java like Pixel Location Width Height .? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "how paint method works in java like Pixel Location Width Height .?" Watch "how paint method works in java like Pixel Location Width Height .?" New topic
Author

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

Sumit Kayat
Greenhorn

Joined: Dec 23, 2012
Posts: 3
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42908
    
  68
What, exactly, is your question? What do or don't you understand?
Sumit Kayat
Greenhorn

Joined: Dec 23, 2012
Posts: 3
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
Marshal

Joined: Mar 22, 2005
Posts: 42908
    
  68
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how paint method works in java like Pixel Location Width Height .?