Jaiku


Jaiku requires Java!

Jaiku is, obviously, a Java applet that generates random Haiku. Or at least three-line text objects that generally have the 5-7-5 syllable pattern that real Haiku usually has. The user interface is, I hope, obvious; push the button for a new one.

The source is here. It's a very quick-and-dirty implementation, but extensive chatty comments discuss what a Real OO Implementation® might look like.

There are various parameters that can be passed to the applet to control how it looks. On this page, it's rendered in a 20-point serif font with a nice drop-shadow, by this HTML:

<applet code=Jaiku.class width=400 height=120>
<param name="button" value="......">
<param name="font" value="Serif">
<param name="fontsize" value="20">
<param name="fgr" value="255">
<param name="fgg" value="255">
<param name="fgb" value="255">
<param name="bgr" value="102">
<param name="bgg" value="102">
<param name="bgb" value="102">
<param name="shr" value="64">
<param name="shg" value="64">
<param name="shb" value="64">
</applet>
For more documentation, you'll have to RTFC... *8)

Note that I've been having a hard time getting this applet to work from Microsoft Internet Explorer, and an even harder time getting IE to tell me why it's not working. It may be that I just don't have a machine around that has IE installed correctly. If Jaiku does, or doesn't, give you trouble in IE, drop me a line and let me know!


by David Chess of davidchess.com.
back to the Toys page