i want to emulate java.awt.MouseEvent class, and i define MouseEvent extends InputEvent which extends java.util.EventObject.
but when i run this in host mode, i got this error, it shows my InputEvent extends ComponentEvent. why? and how can i fix this? thanks!
java.lang.IllegalArgumentException: null source
at java.util.EventObject.<init>(EventObject.java:38)
at java.awt.AWTEvent.<init>(AWTEvent.java:279)
at java.awt.event.ComponentEvent.<init>(ComponentEvent.java:96)
at java.awt.event.InputEvent.<init>(InputEvent.java:204)
at java.awt.event.MouseEvent.<init>(MouseEvent.java:548)
at java.awt.event.MouseEvent.<init>(MouseEvent.java:450)
this situation just happened in host mode, when i compile and deploy it, all work fine.