Re: using JLayeredPane



On 2006-02-27, Monique Y. Mudama penned:

Here's some example code; the actual app for which I'd like this
functionality is pretty complicated. But I think if I could get
this sample to work, I could also get the app to work:


I figured it out. I needed setBounds() on the component added to the
JLayeredPane.

Unfortunately, that doesn't seem like it's very helpful when the
components need to stretch ... I guess there's probably a way to set
up a listener to continuously redo the setBounds()? But surely
there's a better way?

--
monique

Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
.