java basics textpage initialization