creaate viewer for Java