Link to home
Start Free TrialLog in
Avatar of Akindo
Akindo

asked on

swing layout question

I am a little confused about defining the layout using swing.heres what I want to do....

I have a background image say background.gif
Then I have 5 images, say c1.gif-c5.gif
I also have three buttons and a slider and I want the page to be like this(approximately) with the background image in the back...

____________________
|                      slider   |      So basically the slider is near the top right with the 3 buttons
|                    b1 b2 b3|     lined up under it. Also could you please give me the code that
|                                 |   would let me display the images and also how to remove them...
|  c3 c4 c5                   |
|                                 |
|                    c1   c2   |
|___________________|
Avatar of Akindo
Akindo

ASKER

btw, I forgot to add I also want a menu bar....
Hi,

I think you should have a look at the class JDesktopPane and play around with the LayoutManagers , and LayeredPanes.

Maybe this thread could help you

https://www.experts-exchange.com/questions/20748381/Swing-and-background-picture.html

Thats what I could help.

CU
ASKER CERTIFIED SOLUTION
Avatar of jimmack
jimmack

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
;-)