FontShower For AWT : Java Glossary

go to home page F words local find full screen, hide local find menu Google search web for more information on this topic jump to foot of page translate this page with Babelfish by Roedy Green ©1996-2008 Canadian Mind Products
index page for letter ⇒ punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all)
FontShower for AWT
This Applet will help you write Java code. It will show you what AWT fonts are available via Java on your machine, and what they look like in a variety of styles, sizes and colours.

Click any ball to view the corresponding colour palette.

Named Colours select palette Alphabetically (113) select palette BHS: by Brightness, Hue, Saturation select palette HBS: by Hue, Brightness, Saturation select palette SBH: by Saturation, Brightness, Hue selected palette Java AWT Colours (16,777,216)
select palette RGB: Numerically (113) select palette BSH: by Brightness, Saturation, Hue select palette HSB: by Hue, Saturation, Brightness select palette SHB: by Saturation, Hue, Brightness select palette Java Swing Colours (16,777,216)
Numbered Colours select palette HTML 3.2 (16) select palette Websafe (216) select palette Rainbow (4096) select palette Spectrum (401) select palette X11 (657)
Selected Colours select palette Pale (256) select palette Dark (2022) select palette Simple (105) select palette Greys (256) select palette Colour Schemes
This Applet will let you generate foreground and background colours from a palette of any of 16,777,216 numbered colours. This range of colour/color possibilities is known as the gamut. Use the FontShower for Swing Applet to see what you can do in Swing. Use the Unicode Applet if you want to view the entire Unicode character set.

If, fontshowerawt, the above Font Shower for AWT Java Applet (that can also be run as an application) does not work…

  1. This Java Applet (that can also be run as an application) needs Java 1.2 or later, version 1.6.0_10 recommended and a recent browser.
  2. You should see the Applet hybrid above looking much like the screenshot. If you don’t, the following should help you get it working:
  3. If you are using Microsoft Internet Explorer, try another browser. Seriously. Microsoft has taken great pains, over and over, to screw up Java and every other multi-platform standardisation.
  4. If you are using Internet Explorer 7 or 8, you must allow blocked content permission for Active X to run. This also gives permission to Java to run. Click the Information bar, and then click Allow blocked content. Unfortunately, this also allows dangerous ActiveX code to run. However, you must do this in order to get access to perfectly-safe Java Applets running in a sandbox. This is part of Microsoft’s war on Java. Don’t put up with it! Use a different browser.
  5. Especially if this Applet hybrid has worked before, try clearing the browser cache and rebooting.
  6. To ensure your Java is up to date, check with Wassup. First, download it and run it as an application independent of your browser, then run it online as an Applet to add the complication of your browser.
  7. If the above Applet hybrid does not work, check the Java console for error messages.
  8. If the above Applet hybrid does not work, you might have better luck with the downloadable version.
  9. If you still can’t get the program working click HELP for more detail.
  10. If you can’t get the above Applet hybrid working after trying the advice above and from the HELP button below, have bugs to report or ideas to improve the program or its documentation, please send me an email atemail Roedy Green.
Java powered   Get New Java  Get New Browser   Help
FontShowerAwt is displaying the AWT fonts available on your machine via Java. Other people will have different fonts installed and will see different selections available via Java on their machines. Your browser will see a slightly different set of fonts than this Java Applet does. Java has a few extra private fonts, and some browser fonts don’t work with Java.

Unfortunately, in AWT, only the basic logical fonts: Dialog, DialogInput, Monospaced, SansSerif, and Serif are available for use in Labels, TextFields and TextAreas. To get other fonts shown here, you must write a custom component based on Canvas and drawString.

The Canvas displays were done with a custom AWT Canvas-based component. This lets you use all the fonts and all the characters in the fonts. The source code is available.

The alternate vanilla AWT TextArea display is based on a native OS peer (as are as Label and TextField). It can only display the 5 basic logical fonts and then only some of the characters in those fonts. You have no control in Java over whether TextAreas are anti-aliased. They are rendered by the OS, not Java, and hence are controlled by whether font smoothing is turned on in the Control Panel.

You may not notice any difference with font-smoothing anti-aliasing. Look for the anti-alias smoothing especially in very large font sizes in capital W in the fonts with thin spidery diagonals, e.g. Bodoni, Book Antiqua, Garamond, Serif and Zapf Calligraphic.

Some of the fonts may just show empty squares. These are older 8-bit fonts that don’t support 16-bit Unicode used by Java. Don’t necessarily delete them ( by clicking Control Panel ⇒ fonts ⇒ delete) since word processing documents, or the DOS box, may still be using them. on the other hand, pruning out ugly fonts you never use will speed up your machine.

details about the current version. download source and executable to run this Applet on your own machine as a stand-alone application.


CMP homejump to top
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.62] The information on this page is for non-military use only.
You are visitor number 8,562. Military use includes use by defence contractors.
You can get a fresh copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/fontshowerawt.html J:\mindprod\jgloss\fontshowerawt.html