Java library example.
GUI part 1.