• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

InputEvent ...in event listener model

 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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.
 
What does a metric clock look like? I bet it is nothing like this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!