wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 41073
    
  43
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: 41073
    
  43
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.
 
Don't get me started about those stupid light bulbs.
 
subject: how paint method works in java like Pixel Location Width Height .?
 
Similar Threads
How to convert xml to pdf form in java
can i deploy any ear/jar/war without admin console on websphere 6.1?
Happy New Year! Welcome to our new forums!
How to deploy/undeploy EJBs application through HOT Deployment on websphere 6.1?
Can an abstract class contain main() method or not?