| Customize this image by choosing the border color and entering four lines of text. The first line will be a large font and will be printed at the top and upside down at the bottom. On any change the server side program ( the servlet ) is invoked and the target iframe at the top which holds the customized image is reloaded. The servlet uses Java2D to white out the existing text, to overlay the colored border with a new one using constructive geometry, and to write the 4 lines of text onto the image in the chosen font. It tries to center the lines but this can only work if a fixed width font is used. The fonts present in the local graphics context of the machine the servlet is running on are displayed in the drop down choice and vary between Windows and Solaris platforms. ( demo last updated Feb 10 2005 ) |