Forums Register Login

background image

+Pie Number of slices to send: Send
Hello,
I'm having some trouble putting a background image on a frame using SWING.
What I have done is to create a panel that takes the entire frame or dialog and then a JLabel which I add to the panel. This label only contains an image that occupies the background. Afterwords I add my other panels to the JLabel and make them trasparent. I find it strange to add panels to a jlabel and so I guess there must be some other way. Any ideas?
Second, I'm having some problems resizing the image in function of the size of the display. Someone know how this can be done?
Thanks a lot
+Pie Number of slices to send: Send

Why should I lose weight? They make bigger overalls. And they sure don't make overalls for tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 3443 times.
Similar Threads
Help sorting out what combination of layouts will provide the result I need
Adding components dynamically to a nested JPanel
urgent help with adding an image to jframe
Multiple Panels Background Image
RE: image ico
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 01:50:42.