Results 1 to 3 of 3
- 06-10-2010, 10:22 AM #1
Member
- Join Date
- Jun 2010
- Posts
- 1
- Rep Power
- 0
Tooltip text showing through panel
I have three panels on a JLayeredPane.
'topPanel' is at layer 3, 'middlePanel' is at layer 2, and 'bottomPanel' is at layer 1.
'topPanel' can be expanded and overlaps the 'middlePanel'.
My problem is that when I move the mouse around on 'topPanel', the 'tooltip' text on the controls of the 'middlePanel' appear through the 'topPanel' when it is expanded and overlaps the 'middlePanel'.
'topPanel' and all it's child panels have their opaque value set to 'true', but the tooltip text can still be seen.
Any ideas would be much appreciated, many thanks,
Gary
- 06-11-2010, 06:02 AM #2
Senior Member
- Join Date
- Dec 2008
- Posts
- 526
- Rep Power
- 0
Oo
It is all because of your layers' position... tooltip is always located on the Window layer so it is quite natural you can see it through your top panel =)
you can program not to show it when the top panel is above :)If my answer helped you. Please click my "REP" button and add a comment
Have a Good Java Coding :)
- 06-11-2010, 07:25 AM #3
To get better help sooner, post a SSCCE * that clearly demonstrates your problem.
* SSCCE : Java Glossary
Use code tags to post codes.
db
Similar Threads
-
Adding a panel to a panel
By rclausing in forum New To JavaReplies: 7Last Post: 02-02-2010, 05:56 AM -
Working with Tooltip Text
By Java Tip in forum javax.swingReplies: 0Last Post: 06-26-2008, 07:41 PM -
Need Help showing text in JTextArea
By GuyFawkes in forum AWT / SwingReplies: 3Last Post: 05-05-2008, 09:19 AM -
Why the panel text changed?
By ottawalyli in forum AWT / SwingReplies: 1Last Post: 12-17-2007, 05:56 AM -
Why the panel text changed?
By ottawalyli in forum SWT / JFaceReplies: 0Last Post: 12-16-2007, 04:16 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks