Hello everyone!
Well i am beginner in Java in which is the only language i have any experience on.
Anyways getting to the point i want to know how to use one of my images as the background of my Frame.
Code:
package TestingPackage;
import javax.swing.JFrame;
public class Frame extends JFrame{
public static void main(String[] args){
JFrame Frame = new JFrame();
Frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Frame.setSize(1280, 720);
Frame.setVisible(true);
Frame.setTitle("Game Frame/Window");
}
}
That is my current code that i have for my J Frame and i want to know how i can add an image to it so that every time i open the frame the Background is the picture i want.
Thank you
DaSnipeKid-