From: Christian H. <chr...@tu...> - 2002-12-16 08:33:19
|
Hi, and sorry for using this list for a general Java question, but I know there are so many experts reading it :-) Where and How are mouse events caught by the JDK? The mouse event causes an interrupt in the OS but how does Java now catch this event? Is it in the JVM? Or the AWT? Where does Java find out over which AWT/Swing component the mouse pointer was when the mouse was clicked? ...same question for keyboard events. -- One idea that might be interesting for Scope MVC: The classical MVC has a hierarchical View, the HMVC has a hierarchical Controller - so why shouldn't the Model be hierarchical as well? In fact, it is in the latest domain modelling approaches (Ontologies), like the OpenEHR.org/GEHR.org project for medical software. I've realized that actually not only MVC but ALL items in the real world are hierarchical. Nothing new, I guess, but nobody really implemented this into software. The key design decision to implement this is to make the top-most class a tree node/container so that all inheriting classes are tree nodes automatically. Thank you, Christian |