From owner-freebsd-java Sun May 24 17:00:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA07394 for freebsd-java-outgoing; Sun, 24 May 1998 17:00:24 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: (from jmb@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA07388 for java; Sun, 24 May 1998 17:00:23 -0700 (PDT) (envelope-from jmb) From: "Jonathan M. Bresler" Message-Id: <199805250000.RAA07388@hub.freebsd.org> Subject: are key accelerators for FixedJButtons still broken? To: java Date: Sun, 24 May 1998 17:00:22 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org i am using the JDK-1.1.5 and SwingSet-1.0.2 for FreeBSD. jdk-1.1.5 was downloaded from www.freebsd.org/java. swing-1.0.2 was downloaded from java.sun.com. i downloaded the HelloSwing.java code, compiled and it runs fine....but the alt-i key accelerator does not work. downloaded FixedJButton.java and compiled that will HelloSwing.java....no go. alt-i does not work. anyone else seen this? is there a known work around? the workaround FixedJButton is described at: http://java.sun.com/docs/books/tutorial/ui/swing/workaround.html the code for FixedJButton.java is at: http://java.sun.com/docs/books/tutorial/ui/swing/example-swing/FixedJButton.java the code for HelloSwing.java is at: http://java.sun.com/docs/books/tutorial/ui/swing/example-swing/HelloSwing.java here is the diff for the fix, as i understand it (this may be the crux of the problem ;) *** HelloSwing.java Sun May 24 19:57:45 1998 --- HelloSwingFixed.java Sun May 24 19:58:36 1998 *************** *** 15,21 **** //XXX: Due to a 1.0.2 bug, must use FixedJButton instead of JButton //XXX: if you want mnemonics to work. //XXX: See ui/swing/workaround.html for details. ! JButton button = new JButton("I'm a Swing button!"); button.setMnemonic('i'); button.addActionListener(this); button.getAccessibleContext().setAccessibleDescription( --- 15,21 ---- //XXX: Due to a 1.0.2 bug, must use FixedJButton instead of JButton //XXX: if you want mnemonics to work. //XXX: See ui/swing/workaround.html for details. ! JButton button = new FixedJButton("I'm a Swing button!"); button.setMnemonic('i'); button.addActionListener(this); button.getAccessibleContext().setAccessibleDescription( jmb To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message