if have an annoying problem... I've written an applet white an image, 2 buttons and a slider. When you start the applet the buttons and slider are loaded first and the image gets painted over those components. If you click on the area where the components should be, they appear. Resizing the applet window helps too.
I thought, well, load the image first, and THEN the buttons and slider. WRONG! One of the buttons covers the entire applet and nothing is visible accept for that one button... So that doesn't work either....
I had a similar problem a while back. My button took up the whole app and no one could see the rest of my components. I solved the problem by using layouts. Here are a couple of links to some good tutorials on layouts:
Btw, to get the desired affect you might want to create several panes (one for the buttons, one for the image, etc) and put them all on your main pane (your main pane should have a borderlayout so you can set the other panes as CENTER, NORTH, SOUTH, etc).
Bookmarks