Preview.java

create a preview window