In Java, what is the difference between Graphics.paint and Graphics.paintComponent?
From advanced to novice... come, join in, teach, and learn. Web programming and help. We have stuff on it all: php, html, asp, asp.net, etc. Share your coding expertise too.

Moderators: Forum Experts, Management

In Java, what is the difference between Graphics.paint and Graphics.paintComponent?

Postby Andrew. on Wed Oct 08, 2008 7:50 pm

In Java I'm using the <graphics>.paint() method at present, however people in my workplace are using <graphics>.paintCompponent();

Is there any defining differences?
Andrew.
PRO Level 13
PRO Level 13
 
Posts: 825
Joined: Wed Sep 08, 2004 1:22 am
Location: New Zealand - Aotearoa

Return to HTML, CSS, and Scripts

Who is online

Users browsing this forum: No registered users and 0 guests