Take out unnecessary fields and take out the selectionListener on the
WindowTool class to replace it by a field listener.