I do contract work for a living, which could include writing a program such as this. However, I don’t do people’s homework for them. That just robs them of an education.
You have my full permission to implement this project in any way you please and to keep all the profits from your endeavor.
First you get a dynamically generate a list of all possible java fonts installed on the machine with code similar to this.
This program is very similar to the Conversion Amanuensis. You might start with that and modify it. Just leave out the ConverterGrid class.
Your program is an Applet that lets you choose:
You can use a JColorChooser to select the foreground and background colour and a JComboBox to select the family, style, and size, and use a JTextArea for the test message, Or do it with AWT using ColorChooser, Choice and TextArea.
It will be a useful tool for all Java programmers.
For hints on why I selected that test message see Proofreader Font project.
You need to set up listeners so that if anything changes, you recompute the display.
If you want to get fancy, display the font family menu using a font sample, but be careful, some fonts don’t work that way, like dingbats.
Here is Fahd Sharrif’s implementation:
![]() |
and suggestions to improve this page to Roedy Green : | ||
| Canadian Mind Products | |||
| mindprod.com IP:[65.110.21.43] | |||
| Your face IP:[38.103.63.58] | |||
| You are visitor number 6,222. | |||
| 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/project/fontshower.html | J:\mindprod\project\fontshower.html | ||