Caros colegas,
Estou tentando executar um aplicativo, e apresenta a seguinte mensagem de erro:
Exception occurred during event dispatching:
java.lang.ClassCastException: javax.swing.SwingUtilities$2
at Config.jButton4_mouseClicked(Config.java:129)
at Config$2.mouseClicked(Config.java:69)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java, C
ompiled Code)
at java.awt.Component.processMouseEvent(Component.java, Compiled Code)
at java.awt.Component.processEvent(Component.java, Compiled Code)
at java.awt.Container.processEvent(Container.java, Compiled Code)
at java.awt.Component.dispatchEventImpl(Component.java, Compiled Code)
at java.awt.Container.dispatchEventImpl(Container.java, Compiled Code)
at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java, Com
piled Code)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java, Comp
iled Code)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java, Compiled
Code)
at java.awt.Container.dispatchEventImpl(Container.java, Compiled Code)
at java.awt.Window.dispatchEventImpl(Window.java, Compiled Code)
at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:287)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:10
1)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)
Alguém poderia me informa o que isto significa.
O erro ocorre quanto vou executar o evento de um botão:
void jButton2_mouseClicked(MouseEvent e) {
dispose();
}
void jButton4_mouseClicked(MouseEvent e) {
if (jButton4.getText()=="on"){
jButton4.setText("off");
((ResultProcessor)getParent()).processResult(this,
new Ball());
}
else jButton4.setText("on");
}
--------------------------- LISTA SOUJAVA ---------------------------
http://www.soujava.org.br - Sociedade de Usuários Java da Sucesu-SP
[dúvidas mais comuns: http://www.soujava.org.br/faq.htm]
[para sair da lista: http://www.soujava.org.br/forum/cadastrados.htm]
---------------------------------------------------------------------