{"id":93,"date":"2012-06-19T15:03:14","date_gmt":"2012-06-19T15:03:14","guid":{"rendered":"http:\/\/www.ninelocks.com\/jontrinder.com\/blog\/?p=93"},"modified":"2012-08-29T10:59:50","modified_gmt":"2012-08-29T10:59:50","slug":"horizontal-scroll-problem-in-freeplane-and-other-java-applications","status":"publish","type":"post","link":"https:\/\/www.jontrinder.com\/blog\/?p=93","title":{"rendered":"Horizontal Scroll Problem In  FreePlane and other JAVA applications"},"content":{"rendered":"<p>A problem has shown up with JAVA applications when there is a horizontal scroll bar. When scrolling the window content is scrambled. Fortunately there is a fix as described here<\/p>\n<p><a href=\"https:\/\/bugs.launchpad.net\/ubuntu\/+source\/nvidia-graphics-drivers\/+bug\/876721\">https:\/\/bugs.launchpad.net\/ubuntu\/+source\/nvidia-graphics-drivers\/+bug\/876721<\/a><\/p>\n<p>And thanks to the info in this <a href=\"https:\/\/bugs.launchpad.net\/ubuntu\/+source\/nvidia-graphics-drivers\/+bug\/876721\/comments\/34\">post<\/a><\/p>\n<p>starting many applications with\u00a0-Dsun.java2d.<wbr>opengl=<\/wbr><wbr>True seems to fix the problem. However freeplane has a startup script that does the actual launching so you have to modify that script.<\/wbr><\/p>\n<p>For FreePlane the launch script is found in \/usr\/share\/freeplane. (called freeplane.sh)<br \/>\nThe alterations I made are towards the end of the file , snippet below, my additions are on lines 3, 18 and 32 (not what is shown below is just a section of the file, around line 189 onwards..cheers Julien)<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n#--------- Call (at last) Freeplane -------------------------------------\r\nfwdir=&quot;${freedir}\/fwdir&quot;\r\njon=-Dsun.java2d.opengl=True\r\nif &#x5B; &quot;${JAVA_TYPE}&quot; != &quot;sun&quot; ]\r\nthen # non-Sun environments don't work currently but we try anyway, who knows.\r\n\tdefines=-Dgnu.java.awt.peer.gtk.Graphics=Graphics2D\r\nfi\r\n_debug &quot;Calling: &quot;\\\r\n&quot;${JAVA_CMD}&quot; -Xmx512m\\\r\n &quot;-Dorg.freeplane.param1=$1&quot;\\\r\n &quot;-Dorg.freeplane.param2=$2&quot;\\\r\n &quot;-Dorg.freeplane.param3=$3&quot;\\\r\n &quot;-Dorg.freeplane.param4=$4&quot;\\\r\n &quot;-Dorg.knopflerfish.framework.bundlestorage=memory&quot;\\\r\n &quot;-Dorg.freeplane.globalresourcedir=${freedir}\/resources&quot;\\\r\n &quot;-Dorg.knopflerfish.gosg.jars=reference:file:${freedir}\/core\/&quot;\\\r\n $defines\\\r\n $jon \\\r\n -jar &quot;${freedir}\/framework.jar&quot;\\\r\n -xargs &quot;${freedir}\/props.xargs&quot;\\\r\n -xargs &quot;${freedir}\/init.xargs&quot;\r\n( echo &quot;${DEBUG}&quot; | grep -qe &quot;exit&quot; ) &amp;&amp; exit 0 # do not start Freeplane\r\n&quot;${JAVA_CMD}&quot; -Xmx512m\\\r\n &quot;-Dorg.freeplane.param1=$1&quot;\\\r\n &quot;-Dorg.freeplane.param2=$2&quot;\\\r\n &quot;-Dorg.freeplane.param3=$3&quot;\\\r\n &quot;-Dorg.freeplane.param4=$4&quot;\\\r\n &quot;-Dorg.knopflerfish.framework.bundlestorage=memory&quot;\\\r\n &quot;-Dorg.freeplane.globalresourcedir=${freedir}\/resources&quot;\\\r\n &quot;-Dorg.knopflerfish.gosg.jars=reference:file:${freedir}\/core\/&quot;\\\r\n $defines\\\r\n $jon \\\r\n -jar &quot;${freedir}\/framework.jar&quot;\\\r\n -xargs &quot;${freedir}\/props.xargs&quot;\\\r\n -xargs &quot;${freedir}\/init.xargs&quot;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>A problem has shown up with JAVA applications when there is a horizontal scroll bar. When scrolling the window content is scrambled. Fortunately there is a fix as described here https:\/\/bugs.launchpad.net\/ubuntu\/+source\/nvidia-graphics-drivers\/+bug\/876721 And thanks to the info in this post starting &hellip; <a href=\"https:\/\/www.jontrinder.com\/blog\/?p=93\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[80,79,15],"tags":[3,19,10],"class_list":["post-93","post","type-post","status-publish","format-standard","hentry","category-computing","category-linux","category-mindmaps","tag-computing","tag-freemind","tag-java"],"_links":{"self":[{"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/93","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=93"}],"version-history":[{"count":14,"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/93\/revisions"}],"predecessor-version":[{"id":280,"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/93\/revisions\/280"}],"wp:attachment":[{"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=93"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=93"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}