Re: IKVM 8 AWT/Swing implementation issues

Volker Berlin <[email protected]> Tue, 7 Feb 2017 15:59:26 +0100
Newsgroups gmane.comp.java.ikvm.devel
Message-ID <[email protected]>
--===============3613382619405314675==
Content-Type: multipart/alternative;
	boundary="------------4B649A6363733EAA3B19B762"

--------------4B649A6363733EAA3B19B762
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: 8bit

No, I have no idea. The window control in Swing is very complicated.

Volker


Am 07.02.2017 um 15:53 schrieb Jeroen Frijters:
>
> Hi Dmitry,
>
> Thanks. I committed your fix. I don’t know much about the AWT/Swing
> stuff. Most of the work was done by Volker, maybe he has an idea about
> the keyboard issue.
>
> Regards,
> Jeroen
>
>  
>
> *From:* Dmitry Firsakov [mailto:[email protected]]
> *Sent:* Tuesday, February 7, 2017 15:23
> *To:* [email protected]
> *Subject:* Re: [Ikvm-developers] IKVM 8 AWT/Swing implementation issues
>
>  
>
> Hi Jeroen
>
> I think I found fix for issue (1) (See 31 January 2017 IKVM 8
> AWT/Swing implementation issues)
>
> Can this be commited into IKVM CVS ?
>
> Fix in toolkit-0.95.cs
>
>  
>
>             // A window has an owner, but it does NOT have a container.
>
>             // Component getNativeContainer() was changed in 8.2 so it
> returns null for Window
>
>             // We have to use getParent() instead
>
>             //java.awt.Container parent =
> SunToolkit.getNativeContainer(target);
>
>             java.awt.Component parent = 
> SunToolkit.getHeavyweightComponent(target.getParent());
>
>  
>
> Any ideas about issue (4) “Keyboard does not work in “Heavy weigh”
> popup” ?
>
> Best regards
>
> Dmitry
>
> ___________________________________
>  
> The integrity of this message cannot be guaranteed on the internet.
> Therefore EXANE cannot be considered responsible for the contents.
> If you are not the intended recipient of this message, please delete
> it and notify the sender.
>  
> This message is provided for information purposes only and should not
> be construed as a solicitation or offer to buy or sell any securities
> or related financial instruments.
> Although it may contain some elements from publications produced by
> Exane's research department, this message is not research.
> Please consult our web site for important disclaimers and disclosures
> concerning Exane's research. (http://www.exane.com)
> ___________________________________


--------------4B649A6363733EAA3B19B762
Content-Type: text/html; charset="windows-1252"
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>No, I have no idea. The window control in Swing is very
      complicated. <br>
    </p>
    <p>Volker<br>
    </p>
    <br>
    <div class="moz-cite-prefix">Am 07.02.2017 um 15:53 schrieb Jeroen
      Frijters:<br>
    </div>
    <blockquote
cite="mid:AM2PR08MB0051ECE721241A9476F64BEBA2430@AM2PR08MB0051.eurprd08.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin-top:0in;
	margin-right:0in;
	margin-bottom:10.0pt;
	margin-left:0in;
	line-height:115%;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
pre
	{mso-style-priority:99;
	mso-style-link:"HTML Preformatted Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
	{mso-style-name:msonormal;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
span.EmailStyle18
	{mso-style-type:personal;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
span.EmailStyle19
	{mso-style-type:personal;
	font-family:"Calibri",sans-serif;
	color:#1F497D;}
span.HTMLPreformattedChar
	{mso-style-name:"HTML Preformatted Char";
	mso-style-priority:99;
	mso-style-link:"HTML Preformatted";
	font-family:Consolas;}
span.EmailStyle22
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hi Dmitry,<o:p></o:p></p>
        <p class="MsoNormal">Thanks. I committed your fix. I don’t know
          much about the AWT/Swing stuff. Most of the work was done by
          Volker, maybe he has an idea about the keyboard issue.<o:p></o:p></p>
        <p class="MsoNormal">Regards,<br>
          Jeroen<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div style="border:none;border-left:solid blue 1.5pt;padding:0in
          0in 0in 4.0pt">
          <div>
            <div style="border:none;border-top:solid #E1E1E1
              1.0pt;padding:3.0pt 0in 0in 0in">
              <p class="MsoNormal"
                style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal">
                <b>From:</b> Dmitry Firsakov
                [<a class="moz-txt-link-freetext" href="mailto:[email protected]">mailto:[email protected]</a>] <br>
                <b>Sent:</b> Tuesday, February 7, 2017 15:23<br>
                <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a><br>
                <b>Subject:</b> Re: [Ikvm-developers] IKVM 8 AWT/Swing
                implementation issues<o:p></o:p></p>
            </div>
          </div>
          <p class="MsoNormal"><o:p> </o:p></p>
          <p class="MsoNormal"><span lang="EN-GB">Hi Jeroen<o:p></o:p></span></p>
          <p class="MsoNormal"><span lang="EN-GB">I think I found fix
              for issue (1) (See </span>
            <span
style="font-size:10.0pt;line-height:115%;font-family:&quot;Tahoma&quot;,sans-serif;mso-fareast-language:EN-GB">31
              January 2017 IKVM 8 AWT/Swing implementation issues</span><span
              lang="EN-GB">)<o:p></o:p></span></p>
          <p class="MsoNormal"><span lang="EN-GB">Can this be commited
              into IKVM CVS ?<o:p></o:p></span></p>
          <p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:normal"><span
              style="font-size:12.0pt;font-family:&quot;Times New
              Roman&quot;,serif;mso-fareast-language:EN-GB" lang="EN-GB">Fix
              in toolkit-0.95.cs<o:p></o:p></span></p>
          <p class="MsoNormal"
            style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal">
            <span style="font-size:10.0pt;font-family:&quot;Courier
              New&quot;;mso-fareast-language:EN-GB" lang="EN-GB"><o:p> </o:p></span></p>
          <p class="MsoNormal"
            style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal">
            <span style="font-size:10.0pt;font-family:&quot;Courier
              New&quot;;mso-fareast-language:EN-GB" lang="EN-GB">           
              // A window has an owner, but it does NOT have a
              container.
              <o:p></o:p></span></p>
          <p class="MsoNormal"
            style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal">
            <span style="font-size:10.0pt;font-family:&quot;Courier
              New&quot;;mso-fareast-language:EN-GB" lang="EN-GB">            //
              Component getNativeContainer() was changed in 8.2 so it
              returns null for Window<o:p></o:p></span></p>
          <p class="MsoNormal"
            style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal">
            <span style="font-size:10.0pt;font-family:&quot;Courier
              New&quot;;mso-fareast-language:EN-GB" lang="EN-GB">           
              // We have to use getParent() instead<o:p></o:p></span></p>
          <p class="MsoNormal"
            style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal">
            <span style="font-size:10.0pt;font-family:&quot;Courier
              New&quot;;mso-fareast-language:EN-GB" lang="EN-GB">           
              //java.awt.Container parent =
              SunToolkit.getNativeContainer(target);<o:p></o:p></span></p>
          <p class="MsoNormal"
            style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal">
            <span style="font-size:10.0pt;font-family:&quot;Courier
              New&quot;;mso-fareast-language:EN-GB" lang="EN-GB">           
              java.awt.Component parent = 
              SunToolkit.getHeavyweightComponent(target.getParent());<o:p></o:p></span></p>
          <p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
          <p class="MsoNormal"><span lang="EN-GB">Any ideas about issue
              (4) “Keyboard does not work in “Heavy weigh” popup” ?<o:p></o:p></span></p>
          <p class="MsoNormal"><span lang="EN-GB">Best regards<o:p></o:p></span></p>
          <p class="MsoNormal"><span lang="EN-GB">Dmitry<o:p></o:p></span></p>
          <pre style="line-height:11.9pt"><span lang="EN-GB"> ___________________________________<o:p></o:p></span></pre>
          <pre style="line-height:11.9pt"><span lang="EN-GB"><o:p> </o:p></span></pre>
          <pre style="line-height:11.9pt"><span lang="EN-GB">The integrity of this message cannot be guaranteed on the internet. Therefore EXANE cannot be considered responsible for the contents.<o:p></o:p></span></pre>
          <pre style="line-height:11.9pt"><span lang="EN-GB">If you are not the intended recipient of this message, please delete it and notify the sender.<o:p></o:p></span></pre>
          <pre style="line-height:11.9pt"><span lang="EN-GB"><o:p> </o:p></span></pre>
          <pre style="line-height:11.9pt"><span lang="EN-GB">This message is provided for information purposes only and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments.<o:p></o:p></span></pre>
          <pre style="line-height:11.9pt"><span lang="EN-GB">Although it may contain some elements from publications produced by Exane's research department, this message is not research.<o:p></o:p></span></pre>
          <pre style="line-height:11.9pt"><span lang="EN-GB">Please consult our web site for important disclaimers and disclosures concerning Exane's research. (<a moz-do-not-send="true" href="http://www.exane.com">http://www.exane.com</a>)<o:p></o:p></span></pre>
          <pre style="line-height:11.9pt"><span lang="EN-GB"> ___________________________________<o:p></o:p></span></pre>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>

--------------4B649A6363733EAA3B19B762--


--===============3613382619405314675==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
--===============3613382619405314675==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Ikvm-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ikvm-developers

--===============3613382619405314675==--