adding setCenter method
Resizable