viewer class built in java