> Just wondering if anyone has been involved in a project or development where
> they wrapped the Swing API behind there own API.
Well, not the entire API, but if you need a custom Swing component
you'll normally either extend the component in question or wrap it in
your custom class. I think every developer who has worked with GUI's
will have done this many times.
> Some Reasons Why:
> To have our own events instead of Swing MouseEvents, KeyEvents coming
> though to our application.
> Also we want to have windows that close automatically on certain events
> e.g. closes automatically on a Middle click.
Just implement the appropriate listeners.
> Some key Events have to go to the main window which is a canvas even
> though the focus is in another window.
Simply pass a reference of the canvas on to your other components, add
the appropriate listeners to these components, and send the events that
you capture on to your canvas.