I use this library to do dot matrix printing;
https://blog.jocki.me/simple-escp/
Runnable runner = new Runnable() { @Override public void run() {