<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Arcgis java - anomaly in map - freezing or dissapearing in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/arcgis-java-anomaly-in-map-freezing-or/m-p/297179#M863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P dir="ltr" style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;I have a freezing/disappearing JMap problem.&lt;/P&gt;&lt;P dir="ltr" style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;I'm using the Arcgis for java developers for developing GUI. My main frame is java-fx application - stage and scene. On my scene I have couple of java-fx components. One of them is a corner small window StackPane with a SwingNode on it. The SwingNode contains a panel, which contains a JMap. On JMap I have tiled map something.tpk.&lt;/P&gt;&lt;P dir="ltr" style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; text-align: left;"&gt;The code is here:&lt;/P&gt;&lt;P dir="ltr" style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; text-align: left;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;private&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;void&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; createAndSetSwingContent&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;()&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;UtilManager&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;getInstance&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;().&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;runInEDT&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(()&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;JPanel&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; mapPanel &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;JPanel&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;();&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp; mapPanel&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;setPreferredSize&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Dimension&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;340&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;290&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;));&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp; map &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;MapManager&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;getInstance&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;().&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;createMap&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;mapPanel&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;BR /&gt;&amp;nbsp; map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;addMapEventListener&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;MapEventListenerAdapter&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;()&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;@Override&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;public&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;void&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; mapReady&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;MapEvent&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; event&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp; mapReady &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;true&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp; graphicHolder &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;GraphicalIDHolder&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;});&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp; mapPanel&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;setVisible&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;true&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp; setPanel&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;mapSwingNode&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; mapPanel&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;});&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;private&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;JMap&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; createMap&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;JPanel&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; panel&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;MapType&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; mapType&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;JMap&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; map &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;JMap&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;();&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp; map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;getLayers&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;().&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;clear&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;();&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ArcGISLocalTiledLayer&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; tiledLayer &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ArcGISLocalTiledLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #6b291b;"&gt;"c:/PRIMUS.tpk"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;getLayers&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;().&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;add&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;tiledLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp; map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;setExtent&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Envelope&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;3883000&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;3777000&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;3884000&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;3778000&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;));&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;GraphicsLayer&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; graphicsLayer &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;GraphicsLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;();&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp; map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;getLayers&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;().&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;add&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;graphicsLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #6a737c;"&gt;// adding fill picture above the map, below the other graphics&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Envelope&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; env &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Envelope&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(-&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;20037508.3427892&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;11070723.3593911&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;20037508.3427892&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;11070723.359391&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;SimpleFillSymbol&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; fill &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;SimpleFillSymbol&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Color&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;20&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;41&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;90&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;));&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Graphic&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; g &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Graphic&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;env &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; fill&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="com" style="color: #6a737c;"&gt;//getFillSymbol());//fill);//&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp; graphicsLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;addGraphic&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;g&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;setPreferredSize&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;panel&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;getPreferredSize&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;());&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp; map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;setMaximumSize&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;panel&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;getMaximumSize&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;());&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp; panel&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;add&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;return&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P dir="ltr" style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; text-align: left;"&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; text-align: left;"&gt;My problem is: After some time, the map disappears and some random junk showed there. When I touch this small window, the map reappears. Sometimes it also freezes for a while.&lt;/P&gt;&lt;P dir="ltr" style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; text-align: left;"&gt;This is really bad looking, and I need to fix it. Is this a known problem? Should I refresh/repaint my map from time to time? If so, how can I do it?&lt;/P&gt;&lt;P dir="ltr" style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; text-align: left;"&gt;Really appreciate your help,&lt;/P&gt;&lt;P dir="ltr" style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; text-align: left;"&gt;Thanks,&lt;/P&gt;&lt;P dir="ltr" style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; text-align: left;"&gt;Aviv.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Apr 2016 18:23:41 GMT</pubDate>
    <dc:creator>AvivDinitz</dc:creator>
    <dc:date>2016-04-21T18:23:41Z</dc:date>
    <item>
      <title>Arcgis java - anomaly in map - freezing or dissapearing</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/arcgis-java-anomaly-in-map-freezing-or/m-p/297179#M863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P dir="ltr" style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;I have a freezing/disappearing JMap problem.&lt;/P&gt;&lt;P dir="ltr" style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;I'm using the Arcgis for java developers for developing GUI. My main frame is java-fx application - stage and scene. On my scene I have couple of java-fx components. One of them is a corner small window StackPane with a SwingNode on it. The SwingNode contains a panel, which contains a JMap. On JMap I have tiled map something.tpk.&lt;/P&gt;&lt;P dir="ltr" style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; text-align: left;"&gt;The code is here:&lt;/P&gt;&lt;P dir="ltr" style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; text-align: left;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;private&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;void&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; createAndSetSwingContent&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;()&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;UtilManager&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;getInstance&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;().&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;runInEDT&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(()&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;JPanel&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; mapPanel &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;JPanel&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;();&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp; mapPanel&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;setPreferredSize&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Dimension&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;340&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;290&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;));&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp; map &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;MapManager&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;getInstance&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;().&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;createMap&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;mapPanel&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;BR /&gt;&amp;nbsp; map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;addMapEventListener&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;MapEventListenerAdapter&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;()&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;@Override&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;public&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;void&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; mapReady&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;MapEvent&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; event&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp; mapReady &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;true&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp; graphicHolder &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;GraphicalIDHolder&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;});&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp; mapPanel&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;setVisible&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;true&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp; setPanel&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;mapSwingNode&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; mapPanel&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;});&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;private&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;JMap&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; createMap&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;JPanel&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; panel&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;MapType&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; mapType&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;JMap&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; map &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;JMap&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;();&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp; map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;getLayers&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;().&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;clear&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;();&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ArcGISLocalTiledLayer&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; tiledLayer &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ArcGISLocalTiledLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #6b291b;"&gt;"c:/PRIMUS.tpk"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;getLayers&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;().&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;add&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;tiledLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp; map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;setExtent&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Envelope&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;3883000&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;3777000&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;3884000&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;3778000&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;));&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;GraphicsLayer&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; graphicsLayer &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;GraphicsLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;();&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp; map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;getLayers&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;().&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;add&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;graphicsLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: #6a737c;"&gt;// adding fill picture above the map, below the other graphics&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Envelope&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; env &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Envelope&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(-&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;20037508.3427892&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;11070723.3593911&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;20037508.3427892&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;11070723.359391&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;SimpleFillSymbol&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; fill &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;SimpleFillSymbol&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Color&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;20&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;41&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #6b291b;"&gt;90&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;));&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Graphic&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; g &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Graphic&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;env &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; fill&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="com" style="color: #6a737c;"&gt;//getFillSymbol());//fill);//&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp; graphicsLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;addGraphic&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;g&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;setPreferredSize&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;panel&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;getPreferredSize&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;());&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp; map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;setMaximumSize&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;panel&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;getMaximumSize&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;());&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp; panel&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;add&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;return&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt; map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #181a1c;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P dir="ltr" style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; text-align: left;"&gt;&lt;SPAN class="pun" style="color: #181a1c;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; text-align: left;"&gt;My problem is: After some time, the map disappears and some random junk showed there. When I touch this small window, the map reappears. Sometimes it also freezes for a while.&lt;/P&gt;&lt;P dir="ltr" style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; text-align: left;"&gt;This is really bad looking, and I need to fix it. Is this a known problem? Should I refresh/repaint my map from time to time? If so, how can I do it?&lt;/P&gt;&lt;P dir="ltr" style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; text-align: left;"&gt;Really appreciate your help,&lt;/P&gt;&lt;P dir="ltr" style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; text-align: left;"&gt;Thanks,&lt;/P&gt;&lt;P dir="ltr" style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; text-align: left;"&gt;Aviv.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 18:23:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/arcgis-java-anomaly-in-map-freezing-or/m-p/297179#M863</guid>
      <dc:creator>AvivDinitz</dc:creator>
      <dc:date>2016-04-21T18:23:41Z</dc:date>
    </item>
  </channel>
</rss>

