Revert r13809, which caused saving to break for multi-channel images.

git-svn-id: https://valelab.ucsf.edu/svn/micromanager2/trunk@13850 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd
Ensure that dialogs do not spawn off-screen.

Copied Jon Daniels' patch for MMFrame and applied it to MMDialog as well. I
don't really have the setup to test it here, but it's pretty straightforward.

git-svn-id: https://valelab.ucsf.edu/svn/micromanager2/trunk@13851 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd
Fix several compiler and Netbeans warnings

git-svn-id: https://valelab.ucsf.edu/svn/micromanager2/trunk@13852 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd