[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-awt-dev
Subject:    <AWT Dev> Run AWT on MacOSX with -XstartOnFirstThread
From:       "Langer, Christoph" <christoph.langer () sap ! com>
Date:       2017-11-07 15:39:31
Message-ID: 3db6523d09384e62be25aa8b9f66c53d () sap ! com
[Download RAW message or body]

Hi,

I've got a question to the experts: I have a tool that launches the Eclipse=
 Framework (with SWT). When I start the JVM on MacOSX, I (have to) set the =
option -XstartOnFirstThread. However, I want to do some work with AWT befor=
e launching Eclipse/SWT. But as the AWT NSLoop is not activated in that cas=
e, AWT stuff is not working. Is there any chance I can run the AWT NSLoop m=
anually before Swing is active? Is that possible from within Java code? I d=
on't find this topic well documented...

Thanks in advance for any hints.

Best regards
Christoph


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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]-->
</head>
<body lang="DE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span lang="EN-US">I&#8217;ve got a question to the experts: I \
have a tool that launches the Eclipse Framework (with SWT). When I start the JVM on \
MacOSX, I (have to) set the option -XstartOnFirstThread. However, I want to do some \
work with AWT  before launching Eclipse/SWT. But as the AWT NSLoop is not activated \
in that case, AWT stuff is not working. Is there any chance I can run the AWT NSLoop \
manually before Swing is active? Is that possible from within Java code? I \
don&#8217;t find this topic well  documented&#8230;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks in advance for any \
hints.<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US">Best regards<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US">Christoph</span><span lang="EN-US" \
style="font-size:8.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#666666;mso-fareast-language:DE"><o:p></o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
</div>
</body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic