LayerInputContext should support null super.getInputContext()?
I have an application that adds/removes JXLayer components at runtime, and sometimes I'll get events (e.g. mouse wheel) after the JXLayer has been removed from the parent container. This causes Component.getInputContext() to return null, which then results in a NullPointerException in LayerInputContext.dispatchEvent() (and possibly the other methods in LayerInputContext).
I simply added null checks before trying to forward to the wrapped InputContext.
Btw, a separate issue/feature you might consider:
I added a check for consumed InputEvents so that I could eat them in the LayerUI. For example, I used this to handle all mousewheel events in my JXLayers so that I can have nested scrollpanes within a custom scrollable window.