From owner-freebsd-java@FreeBSD.ORG Wed Jul 23 14:53:13 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EEA9937B401 for ; Wed, 23 Jul 2003 14:53:13 -0700 (PDT) Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A10443F93 for ; Wed, 23 Jul 2003 14:53:12 -0700 (PDT) (envelope-from g.w.k@web.de) Received: from [217.232.165.187] (helo=[217.232.165.187]) by smtp.web.de with asmtp (WEB.DE 4.99 #420) id 19fRXT-0006xq-00; Wed, 23 Jul 2003 23:52:47 +0200 From: "Georg-W. Koltermann" To: Lutz Bichler In-Reply-To: <200305200956.53509.Lutz.Bichler@unibw-muenchen.de> References: <200305171035.35849.Lutz.Bichler@unibw-muenchen.de> <1053382610.606.6.camel@bat.localnet> <200305200956.53509.Lutz.Bichler@unibw-muenchen.de> Content-Type: multipart/mixed; boundary="=-XM0ZZYXHTyTgLU/9hi0a" Message-Id: <1058997243.628.64.camel@bat.localnet> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.3 Date: 23 Jul 2003 23:54:03 +0200 Sender: g.w.k@web.de cc: freebsd-java@freebsd.org Subject: Re: NullPointerException in Together/jdk1.4.1-p3 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jul 2003 21:53:14 -0000 --=-XM0ZZYXHTyTgLU/9hi0a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable It occured to me that it might be possible to fix the problem by applying the patch included below. Unfortunately this is disallowed by the Together license, so we cannot be sure. On Mi, 2003-07-23 at 23:18, Lutz Bichler wrote: > On Tuesday 20 May 2003 00:16, Georg-W. Koltermann wrote: > > Together is known not to work with JDK 1.4.x. Togethersoft stated that > > the next version would work with 1.4. > > > > However, that statement was made before they were acquired by Borland > > > > :-) > > > > -- > > Regards, > > Georg. >=20 > Using jdk1.4.1 on Linux or Windows it works ok. So it seems to be a bug i= n the=20 > BSD=B4s jdk1.4.1-p3 . >=20 > Cheers > Lutz --=-XM0ZZYXHTyTgLU/9hi0a Content-Disposition: attachment; filename=OIMetalSplitPaneUI.diff Content-Type: text/plain; name=OIMetalSplitPaneUI.diff; charset=iso-8859-15 Content-Transfer-Encoding: 7bit --- com/togethersoft/util/ui/plaf/metal/OIMetalSplitPaneUI.jad Wed Jul 9 10:38:09 2003 +++ com/togethersoft/util/ui/plaf/metal/OIMetalSplitPaneUI.java Wed Jul 9 13:56:41 2003 @@ -27,9 +27,14 @@ protected void installKeyboardActions() { super.installKeyboardActions(); - super.splitPane.unregisterKeyboardAction(KeyStroke.getKeyStroke(117, 0)); - if(Workarounds.shouldPatchLookAndFeel()) - super.splitPane.unregisterKeyboardAction(super.dividerResizeToggleKey); + final KeyStroke stroke = KeyStroke.getKeyStroke(117, 0); + if (stroke != null) + super.splitPane.unregisterKeyboardAction(stroke); + if(Workarounds.shouldPatchLookAndFeel()) { + final KeyStroke superStroke = super.dividerResizeToggleKey; + if (superStroke != null) + super.splitPane.unregisterKeyboardAction(superStroke); + } super.dividerResizeToggleKey = KeyStroke.getKeyStroke(119, 8); super.splitPane.registerKeyboardAction(super.keyboardResizeToggleListener, super.dividerResizeToggleKey, 1); } --=-XM0ZZYXHTyTgLU/9hi0a--