<?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>1102</bug_id>
          
          <creation_ts>2014-11-12 19:54:13 +0100</creation_ts>
          <short_desc>Allow ScalableSurface.setSurfaceScale(..) of GLJPanel to happen in-between addNotify() and 1st display/initialization</short_desc>
          <delta_ts>2019-03-29 17:54:46 +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>core</component>
          <version>2.3.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>martin.pernollet</cc>
    
    <cc>sgothel</cc>
          
          <cf_type>---</cf_type>
          <cf_scm_refs>a372a5db4e9c2d56545791a5a2233a5cdbd94523</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4444</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-11-12 19:54:13 +0100</bug_when>
    <thetext>Currently, GLCanvas and GLJPanel skip setSurfaceScale(..) if 
the AWT/Swing component or the drawable backend is not yet realized.

Implementation shall earmark and validate the requested pixel-scale,
so it can be used at realization (1st display, visibility).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4445</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-11-12 20:06:00 +0100</bug_when>
    <thetext>(In reply to comment #0)
&gt; Currently, GLCanvas and GLJPanel skip setSurfaceScale(..) if 
&gt; the AWT/Swing component or the drawable backend is not yet realized.
This is only true for GLJPanel, i.e. after addNotify() and 1st display/realization.

&gt; 
&gt; Implementation shall earmark and validate the requested pixel-scale,
&gt; so it can be used at realization (1st display, visibility).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4446</commentid>
    <comment_count>2</comment_count>
    <who name="Martin">martin.pernollet</who>
    <bug_when>2014-11-13 18:07:05 +0100</bug_when>
    <thetext>In Jzy3d, I noticed the same behaviour for NewtCanvasAWT on MacOS 10.8.5 and 10.9.

We are using it as follow :
https://github.com/jzy3d/jzy3d-api/blob/master/jzy3d-api/src/awt/org/jzy3d/plot3d/rendering/canvas/CanvasNewtAwt.java

Details here : 
https://github.com/jzy3d/jzy3d-api/issues/44</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4471</commentid>
    <comment_count>3</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-12-07 04:15:14 +0100</bug_when>
    <thetext>a372a5db4e9c2d56545791a5a2233a5cdbd94523

    - Bug 1102: GLJPanel.setSurfaceScale(..)
      Allow setting non-initialized GLJPanel surface scale.
      TODO: More tests and probing before initialization.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4472</commentid>
    <comment_count>4</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-12-07 04:17:38 +0100</bug_when>
    <thetext>(In reply to comment #2)
&gt; In Jzy3d, I noticed the same behaviour for NewtCanvasAWT on MacOS 10.8.5 and
&gt; 10.9.
&gt; 
&gt; We are using it as follow :
&gt; https://github.com/jzy3d/jzy3d-api/blob/master/jzy3d-api/src/awt/org/jzy3d/
&gt; plot3d/rendering/canvas/CanvasNewtAwt.java
&gt; 
&gt; Details here : 
&gt; https://github.com/jzy3d/jzy3d-api/issues/44

IMHO this is a different issue.

Please copy info and file a new bug, thx.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>