Swing: first steps to viewer