Hey everyone.
Couple of questions:
First, I have a JTextField.. when you backspace to the beginning and
keep backspacing it sounds the system bell. How do you disable this?
I'm guessing its something really stupid, but heck if I can find it in
the processKeyEvent or the listeners.
Second, I need to be able to display fixed width font in the 10-16 font
size range using a JTextPane. Does anyone have any advice for how to
make the text look nicer than it does?
>From what I've read there no way to get the FixedSys font (the one that
everyone wants)? Does anyone have any recommendations for an
alternative?
Thanks!
-Ken
Thomas Weidenfeller - 04 Feb 2005 08:21 GMT
>>From what I've read there no way to get the FixedSys font (the one that
> everyone wants)? Does anyone have any recommendations for an
> alternative?
From the JDK documentation:
http://java.sun.com/j2se/1.5.0/docs/guide/intl/font.html
/Thomas

Signature
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
Ken - 18 Feb 2005 16:58 GMT
> >>From what I've read there no way to get the FixedSys font (the one that
> > everyone wants)? Does anyone have any recommendations for an
[quoted text clipped - 5 lines]
>
> /Thomas
Thanks, that link helped a good deal. If I'm understanding the page
correctly, then no its not possible to use the FixedSys font. Are they
any plans to support those fonts at all?
Ken - 18 Feb 2005 17:02 GMT
> First, I have a JTextField.. when you backspace to the beginning and
> keep backspacing it sounds the system bell. How do you disable this?
> I'm guessing its something really stupid, but heck if I can find it in
> the processKeyEvent or the listeners.
Noticed something odd last night..
I have a textfield in which I've overridden processKeyEvent. I tried
intercepting the backspace key there to disable the beep. When I
compiled and ran my app, it didn't catch the backspace keys.
I left the code in place and then set a copy up for deployment using
Java Web Start. When I ran the app, the backspace key was caught and
consumed properly.
Any idea why this would happen?
Thanks,
-Ken