How are images drawn in java, im at a loss. I've managed to get a BufferedImage from a file and then use getGraphics() and g.drawImage() but this doesnt work. I've seen suggestions for a class called paintComponent() then super(g).paintComponent but this doesnt work.
I have a JPanel called panel and a JFrame called frame. I was originally trying to add an image to the panel but i thought just Graphics would work. I want an image to draw across my entire gui, ive got two ints for width and height so not a problem.
Ive looked at java docs and other posts without finding an answer, this is my last resort :/
Thanks in advance