aspose file tools*
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
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: 41525
    
  53
What, exactly, is your question? What do or don't you understand?


Ping & DNS - my free Android networking tools app
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: 41525
    
  53
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 .?