create viewer for Java