Java's Graphics2D class provides methods to draw primitive shapes, such as lines, rectangles and ellipses. It lacks a method for drawing pixels. You can color a single pixel in a Java drawing by ...
However, escape sequences are not very portable. For example, Windows NT provides an ANSI.SYS driver, but only for legacy DOS applications (which a JVM is not). I do not recommend this option except ...