I'd like to draw pixels on a window with mouse input
问题 I've done days of searching for a way to draw pixels to a window in java with mouse capture. I'm looking for some framework I can just plug in. It seems like it would be so simple... Any help will be greatly appreciated. (EDIT) Here is some non-working code. public class Base extends JPanel implements MouseMotionListener { public static void main(String[] args) { new Base(); } final static int width = 800; final static int height = 600; BufferedImage img; Base() { img = new BufferedImage