Create an Array of Buttons instead of Button bt = new Button();