Tooltips partly hidden under Canvas.

I have a Jpanel right beside a Canvas. The Jpanel contains some JButtons and JComboBoxes with tool tips. The problem is that a long tool tips string will be hidden under the Canvas. A similar thing happens if I place the JPanel above the Canvas, when the JComboBox is opened and "droped down" then most of the combobox box is hidden under the Canvas. Can I set a higher Z-order (or similar) on the Jpanel?
labattiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

conickCommented:
You're running into heavy/light weight component issues.
Canvas is a heavyweight component (it has a native peer).
This means it will show above the lightweight component (JPanel).
If at all possible use all lightweight or all heavyweight, even though you CAN mix them together.
A simple solution if you have access to the Canvas code:  
Change the base class from Canvas to JComponent.

Take a look at the Sun's Swing Connection site for more info.
Anyone have that address?? My bookmarks got whacked again :(

Good Luck!
0
conickCommented:
Here it is:
http://java.sun.com/products/jfc/tsc/articles/mixing/index.html
Apparently the Swing Connection is in a "rebuilding" mode.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
labattiAuthor Commented:
I would probably not have found that myself. Great! Thanks!!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.