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
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
Joined: Jun 03, 2000
Thanks Praveen, really appreciate your time and effort. vivek