<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>1306</bug_id>
          
          <creation_ts>2016-05-13 09:47:37 +0200</creation_ts>
          <short_desc>Medium-weight tooltips are painted behind the GLCanvas</short_desc>
          <delta_ts>2019-03-30 04:03:19 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>macosx</component>
          <version>2.4.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>macosx</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>1299</dependson>
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Robin Stevens">robin.stevens</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>gouessej</cc>
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs>jogl d590c5df17650b3790bb434fb7529df874914a09</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>5621</commentid>
    <comment_count>0</comment_count>
    <who name="Robin Stevens">robin.stevens</who>
    <bug_when>2016-05-13 09:47:37 +0200</bug_when>
    <thetext>Swing has 3 code paths for showing tooltips:
- Lightweight tooltips (which can be disabled using javax.swing.ToolTipManager#setLightWeightPopupEnabled(false) )
- Medium tooltips, which are used when the tooltip fits completely within the bounds of the application frame
- Heavyweight tooltips, which are used when the tooltip overlaps with an area outside the bounds of the application frame.

On OS X using JDK8, the medium tooltips are painted behind the GLCanvas when not using the Aqua look and feel (the reason that it works with the Aqua look and feel is that the Aqua look and feel uses its own PopupFactory instance).

A reproducible program can be found on StackOverflow (http://stackoverflow.com/q/37001959/1076463), together with screenshots illustrating the problem.

The StackOverflow also contains a dirty workaround to enforce the use of heavyweight tooltips instead of medium tooltips. The workaround uses reflection, so it would be nice if I no longer need this workaround and the issue gets fixed in JOGL.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5631</commentid>
    <comment_count>1</comment_count>
    <who name="Robin Stevens">robin.stevens</who>
    <bug_when>2016-05-17 14:59:49 +0200</bug_when>
    <thetext>I just created a new build locally from the master branch on Github with patch https://jogamp.org/bugzilla/attachment.cgi?id=786 applied.

After only replacing jogl-all-natives-macosx-universal.jar in my project with the build/jar/jogl-all-natives-macosx-universal.jar from the custom build, this issue goes away.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6159</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-03-30 03:59:41 +0100</bug_when>
    <thetext>If you rely on such .. you need to use GLJPanel I am afraid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6160</commentid>
    <comment_count>3</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-03-30 04:03:19 +0100</bug_when>
    <thetext>Sorry, I see. Fix for bug 1299 also fixes this issue. Great.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>