create viewer java