Return-Path: Delivered-To: apmail-pivot-user-archive@www.apache.org Received: (qmail 77633 invoked from network); 26 Apr 2010 13:31:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Apr 2010 13:31:22 -0000 Received: (qmail 5930 invoked by uid 500); 26 Apr 2010 13:31:22 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 5904 invoked by uid 500); 26 Apr 2010 13:31:21 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 5896 invoked by uid 99); 26 Apr 2010 13:31:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Apr 2010 13:31:21 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=10.0 tests=AWL,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gkbrown@mac.com designates 17.148.16.105 as permitted sender) Received: from [17.148.16.105] (HELO asmtpout030.mac.com) (17.148.16.105) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Apr 2010 13:31:13 +0000 MIME-version: 1.0 Content-type: multipart/alternative; boundary="Boundary_(ID_lHaI3IEswYZ3JH999y8Zdw)" Received: from [192.168.1.13] ([173.76.183.203]) by asmtp030.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0L1H00BWTK7DES40@asmtp030.mac.com> for user@pivot.apache.org; Mon, 26 Apr 2010 06:30:53 -0700 (PDT) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1004260088 From: Greg Brown Subject: Re: Referencing pivot from Swing Date: Mon, 26 Apr 2010 09:30:49 -0400 In-reply-to: <8863CB1D9E616C45B4EF839A793CEE8315A661B713@MIKEX213.NWEurope.Int.KN> To: user@pivot.apache.org References: <8863CB1D9E616C45B4EF839A793CEE8315A613B92E@MIKEX213.NWEurope.Int.KN> <8863CB1D9E616C45B4EF839A793CEE8315A658F581@MIKEX213.NWEurope.Int.KN> <8863CB1D9E616C45B4EF839A793CEE8315A661B713@MIKEX213.NWEurope.Int.KN> Message-id: X-Mailer: Apple Mail (2.1078) --Boundary_(ID_lHaI3IEswYZ3JH999y8Zdw) Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: quoted-printable Though it will certainly be easier to do once PIVOT-418 is resolved, = creating a custom application context using the existing API isn't = actually all that tough. For example, I created this one by stripping = out the non-essential code from DesktopApplicationContext: = http://svn.apache.org/repos/asf/pivot/trunk/tests/src/org/apache/pivot/tes= ts/SwingApplicationContext.java I also added a menu bar (taken from the Swing menu tutorial) to = demonstrate that it is possible. Running SwingApplicationContext with = the org.apache.pivot.tests.BaselineTest application makes a decent = example. Hope this helps, Greg On Apr 26, 2010, at 5:23 AM, Rendell, Stephen / Kuehne + Nagel / Ntg CI = wrote: > Well we do need a top menu bar (on the Display) as I mentioned = earlier, but mostly the requirement is political as Swing has been = mandated as the main client-side technology we have to use. These kind = of dictats are common in large companies, unfortunately. > =20 > Looks like PIVOT-418 is only being fixed in 2.0 which is probably too = late for us, and without it I would need to modify ApplicationContext to = allow me to write a =91SwingApplicationContext=92 containing a = =91HostFrame=92 that delegates to swing. This involves quite a lot of = code. > =20 > Cheers, > Steve > =20 > From: Greg Brown [mailto:gkbrown@mac.com]=20 > Sent: 23 April 2010 12:23 > To: user@pivot.apache.org > Subject: Re: Referencing pivot from Swing > =20 > Moving DisplayHost out of ApplicationContext would enable this. This = is being tracked in PIVOT-418: > =20 > https://issues.apache.org/jira/browse/PIVOT-418 > =20 > I'm curious to know why you might want to do this, though. Is there = something you want to do with Swing that isn't currently possible in = Pivot? > =20 > =20 > On Apr 23, 2010, at 5:10 AM, Rendell, Stephen / Kuehne + Nagel / Ntg = CI wrote: >=20 >=20 > I notice a question has already been asked about embedding swing = widgets in a pivot app, but what about the other way round? > =20 > Does anyone have any experience of or idea how to create, say, a pivot = Frame in a swing app in place of a JInternalFrame. > Or somehow write an alternative to DisplayHost which uses the existing = underlying graphics that swing uses, so that a pivot app could = transparently function in a swing environment? > =20 > Cheers, > Steve >=20 > Kuehne + Nagel Ltd. ( the Company) trade solely upon the conditions of = the British International Freight Association. Copies of these = Conditions can be obtained on application to the Company or upon = application to the Director General of the British International Freight = Association at Redfern House, Browells Lane, Feltham, Middx, TW13 7EP >=20 > This email and any attachments are confidential and solely for the use = of the intended recipient. They may contain material protected by legal = professional or other privilege. If you are not the intended recipient = or the person responsible for delivering to the intended recipient, you = are not authorised to and must not disclose, copy, distribute or retain = this email or its attachments. Although this email and its attachments = are believed to be free of any virus or other defect, it is the = responsibility of the recipient to ensure that they are virus free and = no responsibility is accepted by the company for any loss or damage = arising from receipt or use thereof. >=20 > Kuehne + Nagel Ltd. > Registered in England and Wales number 01722216. > VAT Registration Number GB 864 4409 10. > Registered Office: 1 Union Business Park, Florence Way, Rockingham = Road, Uxbridge, Middlesex. UB8 2LS --Boundary_(ID_lHaI3IEswYZ3JH999y8Zdw) Content-type: text/html; charset=windows-1252 Content-transfer-encoding: quoted-printable http://svn.apache.org/repos/asf/p= ivot/trunk/tests/src/org/apache/pivot/tests/SwingApplicationContext.java

I also added a menu bar (taken from the = Swing menu tutorial) to demonstrate that it is possible. Running = SwingApplicationContext with the org.apache.pivot.tests.BaselineTest = application makes a decent example.

Hope this = helps,
Greg

On Apr 26, 2010, at = 5:23 AM, Rendell, Stephen / Kuehne + Nagel / Ntg CI wrote:

Well we do need a top menu bar (on = the Display) as I mentioned earlier, but mostly the requirement is = political as Swing has been mandated as the main client-side technology we have to use. These kind of = dictats are common in large companies, = unfortunately.

 

Looks like PIVOT-418 is only being = fixed in 2.0 which is probably too late for us, and without it I would = need to modify ApplicationContext to allow me to write a =91SwingApplicationContext=92 containing a = =91HostFrame=92 that delegates to swing. This involves quite a lot of = code.

 

Cheers,

<= p class=3D"MsoNormal">Steve

 

=

From: Greg Brown [mailto:gkbrown@mac.com]
Sent: 23 April 2010 = 12:23
To: user@pivot.apache.org
Subject: Re: Referencing = pivot from Swing

 

Moving DisplayHost out of ApplicationContext would enable this. = This is being tracked in PIVOT-418:

 

 

I'm curious to know why you might want to do this, though. Is = there something you want to do with Swing that isn't currently possible = in Pivot?

 

 

On Apr 23, 2010, at 5:10 AM, Rendell, Stephen / Kuehne + Nagel / Ntg = CI wrote:



I notice a question has already = been asked about embedding swing widgets in a pivot app, but what about = the other way round?

 

Does anyone have any experience of = or idea how to create, say, a pivot Frame in a swing app in place of a = JInternalFrame.

Or somehow write an alternative to = DisplayHost which uses the existing underlying graphics that swing uses, = so that a pivot app could transparently function in a swing = environment?

 

Cheers,

Steve



Kuehne + Nagel Ltd. ( the = Company) trade solely upon the conditions of the British International = Freight Association. Copies of these Conditions can be obtained on = application to the Company or upon application to the Director General of the British International Freight Association at = Redfern House, Browells Lane, Feltham, Middx, TW13 7EP

This email and any attachments are confidential and solely for the use = of the intended recipient. They may contain material protected by legal = professional or other privilege. If you are not the intended recipient = or the person responsible for delivering to the intended recipient, you are not authorised to and must not = disclose, copy, distribute or retain this email or its attachments. = Although this email and its attachments are believed to be free of any = virus or other defect, it is the responsibility of the recipient to ensure that they are virus free and no responsibility is = accepted by the company for any loss or damage arising from receipt or = use thereof.

Kuehne + Nagel Ltd.
Registered in England and Wales number 01722216.
VAT Registration Number GB 864 4409 10.
Registered Office: 1 Union Business Park, Florence Way, Rockingham Road, = Uxbridge, Middlesex. UB8 2LS

= --Boundary_(ID_lHaI3IEswYZ3JH999y8Zdw)--