Migrate AWT code from ImageJ

Code migrated from:
* https://github.com/imagej/imagej/tree/imagej-2.0.0-beta-7.9/plugins/uis/awt
* https://github.com/imagej/imagej/tree/imagej-2.0.0-beta-7.9/ui/awt-swing