Check out the new MSPaintIDE on GitHub.
A video of it demonstrates creating a simple "hello world" type application. About one minute later in the video, you can see how easy it is to create a small GUI application that pops up a simple dialog box.
MS Paint brings unique advantages as a source code editor for Java. You can erase source code you no longer want. You can re-arrange source code. Correct mistakes. Etc.
Then the IDE (integrated development environment) can then OCR your code, update your project tree, compile, and produce a completed executable build. Try doing that with a stupid ordinary plain ol' text editor!
(Score: 3, Informative) by RubbaBoy on Thursday July 18 2019, @07:30PM
I'm the creator of this abomination, and it is pretty much what you said. The project is not intended for real-world usage and was made as a joke, but it's completely functional and usable (I do have some serious time to devote, I've spent many hundreds of hours on this thing in the past 10 months, since the last release). The OCR is a fully custom library for the IDE and on the default fonts, it is actually extremely accurate in most instances. I would obviously agree that in any scenario where you needed to make something, code from an OCR isn't reliable nor practical.