Replace MouseListener with MouseAdapter

MouseAdapter provides empty implementations of all the listener methods, so code looks simpler.