I actually got a custom swing adapter working in a Pivot app of mine with
handling of mouse and keyboard events, but the one thing I couldn't get
around was how some Swing components paint directly to the AWT peer, thus
bypassing Pivot's paint calls and messing with the z-order.  If JEditorPane
doesn't do this, then you may be ok.

-T

On Sun, Jan 17, 2010 at 2:43 PM, Greg Brown <[email protected]> wrote:

> Hi LM,
>
> There is currently no way to include a Swing component in a Pivot app via
> WTKX. We had experimental support for a SwingAdapter component a while back,
> but there were some challenges in propagating mouse and keyboard input to
> the Swing components.
>
> If you don't need to handle user input events, you should be able to write
> a wrapper component that delegates paint() calls to an embedded JEditorPane.
> Actually, you could still do this even if you do need to handle input
> events, as long as you register the events on the wrapper component, not the
> actual Swing component.
>
> Hope this helps,
> Greg
>
> On Jan 17, 2010, at 2:28 PM, Luke Merolla wrote:
>
> > Hello everybody,
> >
> > I want to ask how it is possible to mix an application with Pivot and
> Swing component.
> > Basically what I'm trying to do is to have an application built with
> Pivot, but I need to use JEditorPane to show some HTML pages.
> >
> > Is there a way to put Swing component into the wtkx file?
> >
> > Any other suggestion is very welcome.
> >
> > Thanks in advance,
> > LM
>
>

Reply via email to