drawing your own buffered image on frame
问题 I have a buffered image with the sizes of my frame: public BufferedImage img; public static int WIDTH = 800; public static int HEIGHT = 600; img=new BufferedImage(WIDTH, HEIGHT,BufferedImage.TYPE_INT_RGB); How can I draw it so I can see just a black image filling the frame? without using Canvas I want to use only the drawImage function from graphics without using the paint or paintComponent functions If it is possible, how can i assign an 1D array [WIDTH*HEIGHT] to that image? SIMPLY: I want