Welcome to your new life of Coding...
Coding is like learning a new language and it needs a lot more patience than learning a normal talking language!
Being an absolute beginner, you have to overcome a lot of difficulties in coding...
You Should not quit-up easily when you saw that red lines on your console(errors!).
My formula for teaching someone to code:
Take a language, Stick to it, Never Back-Step, Solve your Red Lines calmly, Understand and Tolerate them, Be patient for your wonderful results in the future, And you will be a successful programmer, That's it!
Here are some great tutorials to learn Java:-
Hope this helps
Based on your question, I presume you want to draw a picture of a really cool looking picture. You can do this like this:
Add the following to your code:
Graphics g= frame.getGraphics(); g.drawImage("image.png", 0, 0, null);
IDK if the following code works correctly, you will have to research a bit about
g.drawImage(); but it should work. Add this before
frame.setVisible(true); but after all the other code.
Hope this helps ;)
Edit: Remember to replace image.png with the name of the image.