Date: Sun, 24 May 1998 17:00:22 -0700 (PDT) From: "Jonathan M. Bresler" <jmb> To: java Subject: are key accelerators for FixedJButtons still broken? Message-ID: <199805250000.RAA07388@hub.freebsd.org>
index | next in thread | raw e-mail
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
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805250000.RAA07388>
