private void render() {
BufferStrategy bufferStrat = this.getBufferStrategy();
if(bufferStrat == null) {
createBufferStrategy(3);
return;
}
Graphics g = bufferStrat.getDrawGraphics();
g.drawImage(image, 0,0, getWidth(), getHeight(), this);
g.dispose();
bufferStrat.show();
}
This gives a black background (which is right technically).
So how would I add a background image from my windows computer to replace the black background in my JFrame?