Return-Path: X-Original-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 990299E46 for ; Wed, 15 Feb 2012 08:55:18 +0000 (UTC) Received: (qmail 44364 invoked by uid 500); 15 Feb 2012 08:55:18 -0000 Delivered-To: apmail-incubator-ooo-dev-archive@incubator.apache.org Received: (qmail 44285 invoked by uid 500); 15 Feb 2012 08:55:18 -0000 Mailing-List: contact ooo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-dev@incubator.apache.org Received: (qmail 44274 invoked by uid 99); 15 Feb 2012 08:55:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2012 08:55:18 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jogischmidt@googlemail.com designates 209.85.214.47 as permitted sender) Received: from [209.85.214.47] (HELO mail-bk0-f47.google.com) (209.85.214.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2012 08:55:10 +0000 Received: by bkwq11 with SMTP id q11so732971bkw.6 for ; Wed, 15 Feb 2012 00:54:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=KSxRwNDKBvfUXfOQDFIdNi6dlaJeNJMKAsv39fG6hxo=; b=FxtnwJ5O2Ltdtle1OHa31prlGcH8b9bN8cSHa4prb+Ecpv349AYwJLsUN9WQS0LNqf koNkYe5sZlJ+OFxobeDlHihcIVIwSAz221VccBfqBl3NL93kQIlS0wGTQgjE0hq5O4PR t0T5nzvWTJRLEDA8eNM99KQ0OuvDakAqYYG1E= Received: by 10.205.124.17 with SMTP id gm17mr11624467bkc.12.1329296090564; Wed, 15 Feb 2012 00:54:50 -0800 (PST) Received: from [9.155.131.21] (deibp9eh1--blueice3n2.emea.ibm.com. [195.212.29.180]) by mx.google.com with ESMTPS id i2sm4989350bkd.10.2012.02.15.00.54.49 (version=SSLv3 cipher=OTHER); Wed, 15 Feb 2012 00:54:49 -0800 (PST) Message-ID: <4F3B72D9.1040808@googlemail.com> Date: Wed, 15 Feb 2012 09:54:49 +0100 From: =?ISO-8859-1?Q?J=FCrgen_Schmidt?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: ooo-dev@incubator.apache.org Subject: Re: [EXT] JFrame with OO as parent References: <20120215011012.GA25758@localhost> In-Reply-To: <20120215011012.GA25758@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 2/15/12 2:10 AM, Ariel Constenla-Haile wrote: > Hi Fabian, > > On Tue, Feb 14, 2012 at 02:59:09PM +0100, fabian wrote: >> Hi, >> >> I searching for a way to set the OO mainframe as parent to a Java >> swing dialog. By now I don't think this is possible and only >> workarounds can be used to at least disable all functionality of the >> OO in the background while a JFrame is running. >> >> But does someone know better and can correct me? > > AFAIK the best integration you can achieve is by "embedding" the Swing > components inside a UNO dialog. A rather complex subject to explain in > a mail. You can try this extension (only tested in Linux and Windows > XP): http://people.apache.org/~arielch/api/SwingUnoDemo/SwingUnoDemo.oxt > > It gets the modality and integration in AOO by executing a Uno AWT > dialog, and by means of some system dependent stuff (wrapped in AOO API, > you don't have to mess with that) it uses a Swing JPanel with other > Swing components inside. cool, I wasn't aware that it works. Have to take a closer look on it, sounds very interesting. Can you explain it a little bit more ... Juergen > > I only tested this on Linux/Windows XP, it may not work in other OSs. > Source code (a Netbeans project): > http://people.apache.org/~arielch/api/SwingUnoDemo/SwingUnoDemo.zip > > > Regards