pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Bartlett <cbartlet...@gmail.com>
Subject Re: Using AWT Components side-by-side with Pivot Containers
Date Thu, 03 Feb 2011 17:25:39 GMT

I'm not sure I understand what you are trying to achieve.

Are you attempting to have a single native frame, which would contain both a
Pivot GUI and some AWT components?  Perhaps having the frame divided into
sections and placing the Pivot and AWT 'sections' along side each other?


On 3 February 2011 23:03, Adam Perer <adam.perer@gmail.com> wrote:

> Hello!
> I understand it is not possible to embed AWT components inside a Pivot
> container.  One solution mentioned on this mailing list is by perhaps adding
> the AWT component to the host window.
> However, I am unable to get this to work in practice.  For instance, I have
> put code similar to the following in the startup method of my Pivot
> Application:
> ...
> java.awt.Window hostWindow = display.getHostWindow();
> myAWTComponent foo = new myAWTComponent();
> hostWindow.add(foo);
> ...
> However, I am unable to see foo, as the Pivot window seem to take up the
> entire host window.  Do you have any tips so that I can get my Pivot UI and
> my AWT component to work together?  In practice, I am trying get the
> Processing.org visualization framework to work alongside the beautiful Pivot
> GUI.
> Thanks!
>    Adam

View raw message