Horizontal Scroll Problem In FreePlane and other JAVA applications

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 many applications with -Dsun.java2d.opengl=True seems to fix the problem. However freeplane has a startup script that does the actual launching so you have to modify that script.

For FreePlane the launch script is found in /usr/share/freeplane. (called freeplane.sh)
The 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)

#--------- Call (at last) Freeplane -------------------------------------
fwdir="${freedir}/fwdir"
jon=-Dsun.java2d.opengl=True
if [ "${JAVA_TYPE}" != "sun" ]
then # non-Sun environments don't work currently but we try anyway, who knows.
	defines=-Dgnu.java.awt.peer.gtk.Graphics=Graphics2D
fi
_debug "Calling: "\
"${JAVA_CMD}" -Xmx512m\
 "-Dorg.freeplane.param1=$1"\
 "-Dorg.freeplane.param2=$2"\
 "-Dorg.freeplane.param3=$3"\
 "-Dorg.freeplane.param4=$4"\
 "-Dorg.knopflerfish.framework.bundlestorage=memory"\
 "-Dorg.freeplane.globalresourcedir=${freedir}/resources"\
 "-Dorg.knopflerfish.gosg.jars=reference:file:${freedir}/core/"\
 $defines\
 $jon \
 -jar "${freedir}/framework.jar"\
 -xargs "${freedir}/props.xargs"\
 -xargs "${freedir}/init.xargs"
( echo "${DEBUG}" | grep -qe "exit" ) && exit 0 # do not start Freeplane
"${JAVA_CMD}" -Xmx512m\
 "-Dorg.freeplane.param1=$1"\
 "-Dorg.freeplane.param2=$2"\
 "-Dorg.freeplane.param3=$3"\
 "-Dorg.freeplane.param4=$4"\
 "-Dorg.knopflerfish.framework.bundlestorage=memory"\
 "-Dorg.freeplane.globalresourcedir=${freedir}/resources"\
 "-Dorg.knopflerfish.gosg.jars=reference:file:${freedir}/core/"\
 $defines\
 $jon \
 -jar "${freedir}/framework.jar"\
 -xargs "${freedir}/props.xargs"\
 -xargs "${freedir}/init.xargs"
This entry was posted in computing, linux, mindmaps and tagged , , . Bookmark the permalink.

Comments are closed.