This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JQPlus - event question  RSS feed

 
mousami bhattacharya
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question ID :952974499190
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?
Container Events
Paint Event
No such events
This is a question from JQ+ ,and the answer given is Paint Event.
I had marked it No Such event .Because I had read in mugal that all the events that can be handled by low level event processing(and here by low-level event processing I assume we are talking of programming events with processEvent() / enableEvent(mask) )
I checked the API ,there is neither a AWT_PAINT_MASK nor a processPaintEvent() method.
I know paint events are handled by the AWT itself ,and the programmer can use paint () ,update() or repaint() methods ,but can a programmer specifically process the paint event ???
Can you help me realize where I am missing something(If I am )
Thanks
Mousami
 
mousami bhattacharya
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any takers ??? Paul ???
 
mousami bhattacharya
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,Any takers ??? Paul ???
Originally posted by mousami bhattacharya:
Question ID :952974499190
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?
Container Events
Paint Event
No such events
This is a question from JQ+ ,and the answer given is Paint Event.
I had marked it No Such event .Because I had read in mugal that all the events that can be handled by low level event processing(and here by low-level event processing I assume we are talking of programming events with processEvent() / enableEvent(mask) )
I checked the API ,there is neither a AWT_PAINT_MASK nor a processPaintEvent() method.
I know paint events are handled by the AWT itself ,and the programmer can use paint () ,update() or repaint() methods ,but can a programmer specifically process the paint event ???
Can you help me realize where I am missing something(If I am )
Thanks
Mousami

 
Kevin Yip
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's difficult to handle paint event since java doesn't provide a PaintListener interface to receive the event.
If it's to be handled it'll not be through the way we are familiar with.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!