Background image JFrame with content
Posted
by
Petr Safar
on Stack Overflow
See other posts from Stack Overflow
or by Petr Safar
Published on 2012-03-22T03:31:55Z
Indexed on
2012/03/22
5:29 UTC
Read the original article
Hit count: 167
I have a JFrame
with BorderLayout
, there are panels on all sides (North, East ,...). In the panels there are labels and buttons mostly.
Now I want the frame to have a background image, some research told me that i had to change the content pane of my frame.
When I try this however, the content gets put in the background and isn't visible. Also, I don't know how to resize the image if the frame is resized.
Is there an easy fix for this or will I have to rework most of my code?
© Stack Overflow or respective owner