Create MainWin.java

MainWin contains the GUI code and the collection algorithm.