import java.awt.Component fun Component.placeAt(x: Int, y: Int, width: Int, height: Int){ this.setBounds(x,y,width,height) if(this is ImgButton) this.scale(width,height) }