MEU CODIGO ESTÁ ASSIM
//DECLARAÇAO
private JButton botoes[];
//botoes
botoes = new JButton [5];
botaopainel = new JPanel();
botaopainel.setLayout ( new GridLayout (1, botoes.length));
for ( int count = 0 ; count < botoes.length; count++ )
{
botoes[count]= new JButton("Botão" + (count + 1));
botaopainel.add(botoes [count]);
}
add(botaopainel, BorderLayout.SOUTH );
E GOSTARIA DE ALTERAR PARA COLOCAR EM CADA BOTÃO UM NOME
PQ ESTA SAINDO NA INTERFACE BOTAO 1 ; BOTÃO 2 ; …BOTAO 5
COMO RESOLVER ISSO???
OBRIGADO…