<?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>1255</bug_id>
          
          <creation_ts>2015-10-21 14:58:59 +0200</creation_ts>
          <short_desc>Newt canvas in Miglayout fail to resize OR occupy complete JFrame instead of its target layout cell</short_desc>
          <delta_ts>2023-07-12 01:42:38 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>opengl</component>
          <version>3.0.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>macosx</op_sys>
          <bug_status>IN_PROGRESS</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Martin">martin.pernollet</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>gouessej</cc>
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>5453</commentid>
    <comment_count>0</comment_count>
    <who name="Martin">martin.pernollet</who>
    <bug_when>2015-10-21 14:58:59 +0200</bug_when>
    <thetext>When adding a jzy3d chart with a CanvasNewtAwt embedding a NewtCanvasAWT,
it is displayed properly BUT if you magnify and then downsize the frame, 
the NewtCanvasAWT will first grow but won&apos;t be able to decrease its size. 
It does not happen when adding the CanvasNewtAwt to a JFrame with BorderLayout.Center, but it does happen when I use Miglayout to show multiple widgets.

SEE SCREENSHOTS OF THIS BUG :
https://raw.githubusercontent.com/jzy3d/jzy3d-jogl-debug/master/images/jzy3dbug/3-after-downsize.png

------------------------------------
HOWEVER, when removing Jzy3d layer and simply adding a JOGL demo to chartPanel, NewtCanvasAWT appears on top of Miglayout. Which is not what I wanted to demonstrate but still a very annoying thing :)

SEE SCREENSHOTS OF THIS BUG :
https://raw.githubusercontent.com/jzy3d/jzy3d-jogl-debug/master/images/demobug.on.macos10.8.5/2-after-click-occupy-full-frame.png

------------------------------------
To reproduce these problems you can use this piece of code : https://github.com/jzy3d/jzy3d-jogl-debug

Using 
- JOGL 2.3.2
- MacOSX 10.8.5 on MacBookPro Retina display
- JRE 1.6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6038</commentid>
    <comment_count>1</comment_count>
    <who name="Julien Gouesse">gouessej</who>
    <bug_when>2017-05-12 09:47:22 +0200</bug_when>
    <thetext>JRE 1.6? Oracle Java, OpenJDK or Apple Java?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6039</commentid>
    <comment_count>2</comment_count>
    <who name="Martin">martin.pernollet</who>
    <bug_when>2017-05-12 10:34:29 +0200</bug_when>
    <thetext>I am now using 
- Oracle JVM 25.40-b25 for Java 1.8.0_40-ea
- MacOS Sierra 10.12.3
- Jogl 2.3.2

The downsizing bug problem still exists despite a little different.

I reproduce easily with either pure JOGL snippet as well as Jzy3d 1.0 pre-built examples (http://download.jzy3d.org/api/1.0/jzy3d-guide-1.0-demos-exe.zip)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6040</commentid>
    <comment_count>3</comment_count>
    <who name="Martin">martin.pernollet</who>
    <bug_when>2017-05-15 09:16:22 +0200</bug_when>
    <thetext>A Jzy3d user facing the resize problem confirms he is NOT using MigLayout, so the problem is not related to the UI layout framework.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6154</commentid>
    <comment_count>4</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-03-30 03:16:39 +0100</bug_when>
    <thetext>(In reply to Martin from comment #3)
&gt; A Jzy3d user facing the resize problem confirms he is NOT using MigLayout,
&gt; so the problem is not related to the UI layout framework.

We need a simple (w/o jzy3d) standalone test case.
Please reopen if bug still persist and reproducable w/ that test case.
I walk the bug list currently and I cannot work with the given information.
Thank you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6211</commentid>
    <comment_count>5</comment_count>
    <who name="Martin">martin.pernollet</who>
    <bug_when>2019-04-05 19:47:00 +0200</bug_when>
    <thetext>Thanks!

I actually already left a code reproducing the problem.

The exact program to run is located here : https://github.com/jzy3d/jzy3d-jogl-debug/blob/master/src/main/java/org/jzy3d/demos/browser/DemoBrowser.java

It shows problems embedding JOGL GLCanvas in a Miglayout application which is explained in the Javadoc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6212</commentid>
    <comment_count>6</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-04-05 22:52:05 +0200</bug_when>
    <thetext>(In reply to Martin from comment #5)
&gt; Thanks!
&gt; 
&gt; I actually already left a code reproducing the problem.
&gt; 
&gt; The exact program to run is located here :
&gt; https://github.com/jzy3d/jzy3d-jogl-debug/blob/master/src/main/java/org/
&gt; jzy3d/demos/browser/DemoBrowser.java
&gt; 
&gt; It shows problems embedding JOGL GLCanvas in a Miglayout application which
&gt; is explained in the Javadoc.

Thank you. 
Hence I reopened it and earmarked for 2.4.0 for the time being.

Next step would be to create a unit test with your example,
then to fix the issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>