Simple window using java program