File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exam Cram

 
Vivek Shrivastava
Ranch Hand
Posts: 277
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello to all,
I know i should not ask this type of question but u never know from where u will get something to learn.
There is statement in exam cram book at page # 258.

All operating system events are turned into java.awt.Event objects. The JVM then searches the containment hierarchy and graphical component hierarchy trying to locate a method that can handle the event.

My question is here what is this containment hierarchy and graphical component hierarchy ?
please explain it to me. i would really appreciate it.
regards
vivek
 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
Hi Vivek,
"Graphical Component Hirearchy" means The class hierarchy of the Graphical Components like
Component
|
--> Container
|
--> Window
|
--> Frame

Whereas "Containment Hierarchy" means in a GUI Which container contains what components or containers and so on.
For example consider a Frame (F1) has Panel (P1) which inturn contains another Panel(P2) and Panel P2 contains a Button (B1)
Frame (F1)
|
--> Panel (P1)
|
--> Panel (P2)
|
--> Button (B1)
strictly this is not actually a hierarchy in java terms.
Cheers,
Praveen
 
Vivek Shrivastava
Ranch Hand
Posts: 277
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Praveen,
really appreciate your time and effort.
vivek
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic