Last night I solved my problem with a JLayeredPane merely by preparing the
SSCCE (or whatever the acronym is). But this time I seem to be well and truly stuck. Here's the basic code, which does in fact compile and produce results that are not what I think they should be:
I have stripped out a bunch of radio buttons that accompanied godButton. I made the background of rightLowerPanel pink so that it would stand out against homeImage.
Some background information: homeImage.jpg fills mainFrame; rightLowerPanel contains JRadioButtons, but only one in this example. I tried three different variations of the layer depths of the two JComponents: (0,0); (0,1); and (1,0), just to make sure that I didn't have the layer depth interpretations backwards (The documentation describes two interpretations that are opposed to each other -- I'd love to hear how the
Java designers got themselves into that mess!)
The results: homeImage shows up in all three combinations of depth settings; rightLowerPanel never shows up in any of the depth settings. My expectation is that rightLowerPanel should show up on top of homeImage.
My guess is that I am leaving out one of the myriad enabling settings. If this be so, then one of you folks will ask "Did you remember to use setFlopDoodle(true)?" and I'll answer "Oops! Sorry, I shoulda thought of that."
As always, thanks in advance for your help.