So I have a class which extends JPanel and on which I draw a BufferedImage (in its paintComponent method).
However, the image doesn't show up until I resize the window. Any idea how to fix this?
I've tried repaint without much success.
So I have a class which extends JPanel and on which I draw a BufferedImage (in its paintComponent method).
However, the image doesn't show up until I resize the window. Any idea how to fix this?
I've tried repaint without much success.