Return-Path: Delivered-To: apmail-pivot-user-archive@www.apache.org Received: (qmail 61789 invoked from network); 20 Dec 2010 23:26:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Dec 2010 23:26:53 -0000 Received: (qmail 42635 invoked by uid 500); 20 Dec 2010 23:26:53 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 42613 invoked by uid 500); 20 Dec 2010 23:26:52 -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 42605 invoked by uid 99); 20 Dec 2010 23:26:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Dec 2010 23:26:52 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bill.van.melle@gmail.com designates 209.85.210.50 as permitted sender) Received: from [209.85.210.50] (HELO mail-pz0-f50.google.com) (209.85.210.50) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Dec 2010 23:26:44 +0000 Received: by pzk27 with SMTP id 27so919045pzk.9 for ; Mon, 20 Dec 2010 15:26:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=1xBqCB2rFO5E+u/kJci2Jy0gXRJfzCWSUCxf8y2G7sQ=; b=CJAsR5mL3piqu9nkFp69ESVNbke3NUOn0Qrvh97InDkONgBiuj5RCE3qcBput3UzWT AybL0Hv8Yk7pGkii/EprvilpYKUCr9nofZ6hx8CdmeNSMNRhoSzOQzsdMgOsPuqw+Eii uNkWh7Ep6gdFEKC3OBQ0emKJImBE4zNLNbUs0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Tj35BNSm9uwgz0UgRcQbWueEhjr+y2UjBpu8hM88zJLefKNwBVBwPnpwGKt40Jt36h K0rwoo63bB8f7bgtT7aCF3WQNjAC/4tMwuUtqDfbHsNL/r35N/r7VQTCugZwB9XLTosU KeofON3yynwDkvKueBGWxgoba1hm4RofK3FOY= MIME-Version: 1.0 Received: by 10.142.171.17 with SMTP id t17mr3960675wfe.88.1292887583480; Mon, 20 Dec 2010 15:26:23 -0800 (PST) Received: by 10.142.174.14 with HTTP; Mon, 20 Dec 2010 15:26:23 -0800 (PST) In-Reply-To: <68FD20B0-61EC-41CA-840B-9B7C87D873F6@verizon.net> References: <68FD20B0-61EC-41CA-840B-9B7C87D873F6@verizon.net> Date: Mon, 20 Dec 2010 15:26:23 -0800 Message-ID: Subject: Re: how to get handle on main window? From: Bill van Melle To: user@pivot.apache.org Content-Type: multipart/alternative; boundary=000e0cd1876a25dbb20497dfd93a X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd1876a25dbb20497dfd93a Content-Type: text/plain; charset=ISO-8859-1 1. That returns a java.awt.Window, not org.apache.pivot.wtk.Window, so is not suitable for passing to Sheet#open. I guess I asked the question wrong -- I want a handle on the org.apache.pivot.wtk.Window that I opened at startup. Or does that make sense? The whole hosting-window thing I still find a bit unnatural. I guess I could do getDisplay().get(0) and cast it to a Window. 2. What if I'm not inside the code of a pivot component when I want access to the top-level window? --000e0cd1876a25dbb20497dfd93a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 1. =A0That returns a=A0java.awt.Window, not org.apache.pivot.wtk.Window, so= is not suitable for passing to Sheet#open. =A0I guess I asked the question= wrong -- I want a handle on the=A0org.apache.pivot.wtk.Window that I opene= d at startup. =A0Or does that make sense? =A0The whole hosting-window thing= I still find a bit unnatural. =A0I guess I could do getDisplay().get(0) an= d cast it to a Window.

2. =A0What if I'm not inside the code of a pivot component whe= n I want access to the top-level window?
--000e0cd1876a25dbb20497dfd93a--