Results 1 to 3 of 3
  1. #1
    Glovergg is offline Member
    Join Date
    Jun 2010
    Posts
    1
    Rep Power
    0

    Thumbs down 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

  2. #2
    Webuser is offline Senior Member
    Join Date
    Dec 2008
    Posts
    526
    Rep Power
    0

    Default

    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 :)

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,196
    Rep Power
    19

    Default

    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

  1. Adding a panel to a panel
    By rclausing in forum New To Java
    Replies: 7
    Last Post: 02-02-2010, 05:56 AM
  2. Working with Tooltip Text
    By Java Tip in forum javax.swing
    Replies: 0
    Last Post: 06-26-2008, 07:41 PM
  3. Need Help showing text in JTextArea
    By GuyFawkes in forum AWT / Swing
    Replies: 3
    Last Post: 05-05-2008, 09:19 AM
  4. Why the panel text changed?
    By ottawalyli in forum AWT / Swing
    Replies: 1
    Last Post: 12-17-2007, 05:56 AM
  5. Why the panel text changed?
    By ottawalyli in forum SWT / JFace
    Replies: 0
    Last Post: 12-16-2007, 04:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •