creating a GUI with java's Action interface