• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Who to believe?

 
hguan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, all:
Are the following two questions the same? If so, which answer is correct? Thanks.

Harry
JQ+: Question: 952574499190
Q: What (if any) are the events that can only be handled using low-level event processing and cannot be handled by using the event listener model?
A: PaintEvent

Khalid A Mughal, A Programmer's Guide to Java Certification
Question 14.19, page 447.
Q: Are there any events that can be handled using low-level event processing, that otherwise could not be handled using the event listener model?
A: No.
 
Marilyn de Queiroz
Sheriff
Posts: 9067
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
public class PaintEvent
extends ComponentEvent

The component-level paint event. This event is a special type which is used to ensure that paint/update method calls are serialized along with the other events delivered from the event queue. This event is not designed to be used with the Event Listener model; programs should continue to override paint/update methods in order render themselves properly.

Believe Sun
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hguan,
could you please read the Javaranch Naming Policy and register again.
Thank you for your cooperation
------------------
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic