• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

InputEvent ...in event listener model

 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
As far as i know there is nothing called InputEvent in event listener model. i looked at API which has sth called InputMethodEvent which sends out an event in the case of text being altered.In the below Q),the answer is d, but coz of the reason which i quoted above it should be c and d.because there is nothing like InputEvent,but InputMethodEvent exists. can anyone pls explain
Q)which of these event classes are never handled in the event listener model?
a)ComponentEvent
b)ContainerEvent
c)InputEvent
d)PaintEvent
d)WindowEvent
 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Srinivas,
From the API:
public abstract class InputEvent
extends ComponentEvent
The root event class for all component-level input events...
 
srinivas bolloju
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi paul thanks for that info, i didnt do my homework completely, i do see it in API
java.awt.event
Class InputEvent
java.lang.Object
|
+--java.util.EventObject
|
+--java.awt.AWTEvent
|
+--java.awt.event.ComponentEvent
|
+--java.awt.event.InputEvent
 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi srinivas ,
Think carefully about the question.
" which of these event classes are never handled in the event listener model? "
The question implies that the specified event class is handled differently from the other event classes.And that further implies that the class EXISTS. So any event classes which don't
exist should not be considered correct answers.
 
reply
    Bookmark Topic Watch Topic
  • New Topic