Fix <dash> bug. Some refactoring on Swing menu. Give Examples.java a main function