I’ve been trying for a long time to color my JFrame background to black or put an image on it. My GUI contains a main frame and a panel above it and some other buttons on this panel. Any help?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What have you tried?
If you add a JPanel to your JFrame, it takes upp the full space, then you need to set the background on the JPanel.