Creates a new Java class that extends Midlet.