GUI POrque dessa exceção "ArrayIndexOutOfBoundsException: 5"

Olá…
Após implementar um evento de um botão surgiu uma excessão ao clicar nesse botão ou arrastar o mouse sobre a tabela que esse botão interage:
Resumindo a situação:

Quando eu seleciono uma linha da tabela e aciono o botão o evento associado ao botão escreve deletado em uma coluna dessa linha, isso funciona, mas gera essa excessão:
Exception in thread “AWT-EventQueue-1” java.lang.ArrayIndexOutOfBoundsException: 5
e depois que gera essa excessão o evento desse botão não funcina mais.

Desde já agradeço…
O código está abaixo…

	if (e.getSource()==jButton3){
			int selectedRow = jTable1.getSelectedRow();			
			if (selectedRow > 0){							
				Object value = "deletado";
				model.setValueAt(value, selectedRow, 5);
				
			}
       }

[quote=AndersonGray]

[code]
if (e.getSource()==jButton3){
int selectedRow = jTable1.getSelectedRow();
if (selectedRow > 0){
Object value = “deletado”;
model.setValueAt(value, selectedRow, 5);

		}
   }

[/code][/quote]
O que seria o model??
ArrayIndexOutOfBoundsException.
Ele está fora do array, ou seja.
Suponha que vc tenha um array assim:

String[] array = new String[]{"0","1","2"};
//Se você fizer isto acontece o seu erro:
System.out.println(array[3]);

vc esta querendo acessar um índice da array maior que seu tamanho.

lembrete: o ultimo índice da array é: “array.length - 1”