import java.awt.Point; // Demo Bean that does not guard against multiple thread use. public class BrokenProperties extends Point { //------------------------------------------------------------------- // set()/get() for 'Spot' property //------------------------------------------------------------------- public void setSpot(Point point) { // 'spot' setter this.x = point.x; this.y = point.y; } public Point getSpot() { // 'spot' getter return this; } } // End of Bean/Class BrokenProperties