I have 4 custom spinners which modify the width, height, X location and Y location of one selected widget. My widget can be dragged around the screen, and the idea is to use these spinners to change certain properties such as width or height, and see immediate effect on the changes. Is there a pattern that I can use to replace all these classes (XSpinnerListener, YSpinnerListener...) with only one and indicate which property of my current object (a JButton) needs to change? Is this a good design approach?I have 4 custom spinners which modify the width