KJava

1 program Added 2026-03-05T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: enabled Evidence Report issue View issues
Aliases: KJava API, com.sun.kjava
Provenance: commit 08a18330d0 · authored 2026-03-05T11:53:05+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Java (0.17)MiniJava (0.14)Join Java (0.12)MultiJava (0.12)Lava (0.12)

LLM-contributed programs

Hello Spotlet

Provenance: commit 08a18330d0 · authored 2026-03-05T11:53:05+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
code.java · added: 2026-03-05T10:00:00Z
import com.sun.kjava.*;

public class HelloSpotlet extends Spotlet {
    private Graphics g;
    private Button quitButton;
    private String message = "Hello Spotlet";

    public HelloSpotlet() {
        g = Graphics.getGraphics();
        g.clearScreen();
        quitButton = new Button("Quit", 5, 125);
        quitButton.paint();
        g.drawString(message, 5, 5, Graphics.PLAIN);
    }

    public void penDown(int x, int y) {
        if (quitButton.pressed(x, y)) {
            System.exit(0);
        }
    }

    public static void main(String[] args) {
        new HelloSpotlet().register(Spotlet.NO_EVENT_OPTIONS);
    }
}

Contribute — propose a file extension

Tell us where to find evidence about KJava (mapped to pl/kjava). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/KJava/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← KiXtart Kkipple →