You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Alejandro Vilar <al...@synacom.com.bo> on 2010/04/22 16:11:05 UTC
Use optionally sun.awt.* properties
Hi,
In the DisplayHost class constructor there is a piece of
code as follows:
try {
System.setProperty("sun.awt.noerasebackground", "true");
System.setProperty("sun.awt.erasebackgroundonresize",
"true");
} catch (SecurityException exception) {
// No-op
}
In my environment (windows XP 32bits), resize the main window in a desktop
app produces too much flickering, if I set the
sun.awt.erasebackgroundonresize property to false the resize is smoother.
So my first question is if this behavior could be modified to some like
this:
Try{
If(!System.getProperties().containsKey("some.property");){
System.setProperty("some.property", "default_value");
}
}.
In that case I will able to change that property before things get
initialized. But I don't know how this properties affects other
environments, so my second question is why this properties are used in that
way? There is a particular reason?
Thanks in advance,
Alejandro
Re: Use optionally sun.awt.* properties
Posted by Greg Brown <gk...@mac.com>.
> System.setProperty("sun.awt.erasebackgroundonresize", "true");
This should be set to false. I just checked in a fix. Thank you for catching this.