This project outline is not like the artificial tidy problems you are spoon-fed in school, when all the facts you need are included, nothing extraneous is mentioned, the answer is fully specified, along with hints to nudge you toward a single expected canonical solution. This project is much more like the real world of messy problems where it is up to you to fully the define the end point, or a series of ever more difficult versions of this project, and research the information yourself to solve them.
Everything I have to say to help you with this project is written below. I am not prepared to help you implement it; or give you any additional materials. I have too many other projects of my own.
Though I am a programmer, 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.
Here is a simple project for a newbie. I have already implement two versions of this project myself one for AWT and one for Swing.
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:
| You can get the freshest 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 | |
![]() | ||
| Canadian Mind Products | ||
| mindprod.com IP:[65.110.21.43] | ||
| view Blog | Your face IP:[38.107.191.109] | |
| Feedback | You are visitor number 6,931. | |