J2ME (now just JavaME) is my thing, I write mobile apps by day. JavaME is a subset of JavaSE, not that I have ever done this, but; it seems to me to be possible to write some SE java to harness a MIDlet and get it to do somthing.
A wrapper for the input layer and one for the graphics api. You...