Make swing work with mouse or touch