> Events are projected through the scenegraph. If you click on a  
> rectangle it will get the mouse event. If the rectangle doesn't have  
> blocksMouse:true set then the event will also go to the nodes below  
> it. This is essentially bubbling. You can then register event handlers  
> for the events you actually care about on the nodes that receive  
> them.  What JavaFX doesn't have yet is a way to receive global events.  
> For example, all right clicks in the app to implement a global context  
> menu. Or low level keyboard events to the entire window, regardless of  
> which component has the focus. The are RFEs filed for these use cases,  
> so we should get them in a future release.

And that's what I was referring to in regard to bubbling.  I'd like to
attach handler(s) to the stage or scene.

> >> Simpler layout rules.  Flex doesn't have LayoutManagers.  Swing's
>
> > Layout sucks in JavaFX right now.  JFXtra's offers some assistance
> > here with a Grid and MigLayout layout helpers, but its a priority I
> > believe for the team.
>
> Actually, the layout mechanism and API is great. We threw away layout  
> managers and went to a container managed system. You also have the  
> option for absolute positioning, and a few in-between cases.  The  
> reason why layout seems crappy right now is because we have so few  
> built in containers. That's something we are actively working on.  
> Expect more containers and components in future releases.

My comment 'layout sucks' was related to the lacking of containers, so
I'm in agreement with you.

> > There aren't enough complex controls in JavaFX to know how this is
> > going to be handled.  Josh? :)
>
> Swing's concept of a model is really an adapter class between your  
> real data model and the UI control. In JavaFX we have binding instead  
> of an adapter class.

I'm interested in seeing what the binding of a sequence of custom
objects looks like in a grid or a tree control...

> > From what I've seen over the past 10 months of working with JavaFX is
> > that
>
> > 1. It was initially quite immature
> > 2. It's rapidly improving
> > 3. The guys at Sun seem to 'get' it, and are working their butts off
> > to make it work.
> > 4. Version 1.3 might be the tipping point for 'real' apps - both with
> > controls and performance
> > 5. Java 7 (JDK 1.7), Jigsaw (whatever you wanna call it) might be the
> > thing that gets it to the Flash level startup times.  <- That
> > statement is a statement of pure faith and hope.
>
> We are doing a ton of work on startup performance. Some of that will  
> come in JDK 7 and some will be in further Java 6 update releases. We  
> are also working on our alternate graphics stack which is much faster  
> and fully hardware accelerated. Lots more to come.

I'm looking forward to it.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to