pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Perer <adam.pe...@gmail.com>
Subject Re: Using AWT Components side-by-side with Pivot Containers
Date Thu, 03 Feb 2011 17:46:51 GMT
Hi Chris,

Yes, that is exactly what I am trying to achieve:  "having the frame divided
into sections and placing the Pivot and AWT 'sections' along side each

However, I do not know how to achieve this technically, and hope you or
others may be able to assist with advice on how this can be done?  My
attempts, as described in my first email, did not work.

Thanks for your prompt response,

On Thu, Feb 3, 2011 at 7:25 PM, Chris Bartlett <cbartlett.x@gmail.com>wrote:

> Adam,
> 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?
> Chris
> 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