Use an ItemListener instead of ChangeListener for JCheckbox because it seems that stateChanged is called when hoovering over it with mouse. Also set the size of the desktop in case we launch a desktop sharing call.