Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / February 2005

Tip: Looking for answers? Try searching our database.

couple of Text questions

Thread view: 
Ken - 04 Feb 2005 04:50 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.