Deprecation
Hello! I am recompiling code from java 1.2 to java 1.4 and getting a message to compile with the -deprecation option. I did this and get errors like the following:
MaskEngine.java:745: warning: KeyEvent(java.awt.Component,int,long,int,int) in j
ava.awt.event.KeyEvent has been deprecated
KeyEvente = new KeyEvent(new TextField(), 0, 0, 0, 0);
^
1. How do I know what the new class or component is? It states this is a warning but I am getting errors where ever "e" is referenced.
2. If I use the -deprecation and a class file is built, does it mean it substituted the deprecated component with the new component?
Thanks,
David

