Pompous logo
www . DanYEY . co . uk
Java Bits
Here are a few java classes that you may or may not find useful.

TextFile

Class which writes/reads text files, without you having to deal with icky java IO.

Download TextFile.java
Download TextFile.class (compiled version)
JIntField

Swing GUI component which emulates the integer entry field which has associated up/down buttons, found on Windows. The arrows look a little odd for some reason I haven't determined.

Download JIntField.java
Download JIntField.jar (compiled archive)
MsgDlg

Nice way of asking questions and showing error messages to the user, when you can't be bothered defining a GUI for the message (which is all the time if you're me). Its use can be summed up as:
    if (MsgDlg.question("Do you wish to leave the application?") == MsgDlg.YES)
    //quit
Download MsgDlg.java
Download MsgDlg.jar (compiled archive)
StringEscaper

Escapes and un-escapes strings in a C/java-like manner (specifically designed for my pet language). For example, when un-escaping \n gets turned into an actual LF character, and when escaping, tabs, newlines etc get turned into their escaped equivalents.

Download StringEscaper.class (compiled)
Conway's Game Of Life Midlet

A simple implementation of Life for mobile phones and other devices that run java MIDP 1.0 or above. It has been tested on the (buggy) simulator and a Sony Ericsson T610.

Download Life.jar
It's possible other phones require a JAD file. If this is the case, don't hesitate to email me.
Countdown Midlet

A very simple graphical countdown (as in, you choose the minutes and seconds) program for mobile phones and other devices that run java MIDP 1.0 or above. It has been tested on the simulator and a Sony Ericsson T610.

Download Countdown.jar
If you need the JAD file, email me.
L System Midlet

A program which generates tree-like forms from Lindenmayer grammars. For mobile phones and other devices that run java MIDP 1.0 or above. It has been tested on the simulator, a Sony Ericsson T610 and a Palm T5.

Download LSystem.jar
If you need the JAD file, email me.