Ainda não tem acesso? Estude com a gente! Matricule-se
Ainda não tem acesso? Estude com a gente! Matricule-se

Solucionado (ver solução)

Exceção só aparecendo no console do eclipse

Seguindo os exercícios alterei o botão para usar actionListener em vez de action , para eliminar o Warning do eclipse. Com isso parou de exibir as mensagens de erros na tela , exibindo apenas no console.Teria como contornar este problema ou só voltando a usar action ?

2 respostas

Oi Adriano, qual warning você está recebendo no eclipse/console?

solução

Eu acho que você não entendeu a pergunta .Eu disse que coloquei o actionListner para evitar o warning deste tipo:

Method must have signature "String method(), String method(), String method(String), String 
 method(String, String), String method(String, String, String), String method(String, String, String, String), 
 String method(String, String, String, String, String), String method(String, String, String, String, String, 
 String), String method(String, String, String, String, String, String, String), String method(String, String, 
 String, String, String, String, String, String), String method(String, String, String, String, String, String, 
 String, String, String), String method(String, String, String, String, String, String, String, String, String, 
 String), String method(String, String, String, String, String, String, String, String, String, String, String), 
 String method(String, String, String, String, String, String, String, String, String, String, String, String), 
 String method(String, String, String, String, String, String, String, String, String, String, String, String, 
 String), String method(String, String, String, String, String, String, String, String, String, String, String, 
 String, String, String), String method(String, String, String, String, String, String, String, String, String, 
 String, String, String, String, String, String), String method(String, String, String, String, String, String, 
 String, String, String, String, String, String, String, String, String, String), String method(String, String, 
 String, String, String, String, String, String, String, String, String, String, String, String, String, String, 
 String), String method(String, String, String, String, String, String, String, String, String, String, String, 
 String, String, String, String, String, String, String), String method(String, String, String, String, String, 
 String, String, String, String, String, String, String, String, String, String, String, String, String, String)" but 
 has signature "void method(Autor)"

eu só estava questionando que quando uso o actionListner qualquer exceção que possa ocorrer não aparece na tela , mas sim no console.