Rectangle b = simulator.getBounds();
ScreenRegion s = new DesktopScreenRegion(b.x, b.y, b.width, b.height);
canvas.addBox(s).display(2);
StateChangeListener l = new StateChangeListener(){
@Override
public void stateChanged(StateChangeEvent event) {
System.out.println(event.getScreenRegion() + "'s state is changed " +
"from {" + event.getOldState() + "} " +