Hi,Prof. Barnes and friends,
I use java.lang.reflection to get class inheritance and methods for java
file.
I used before (in AWT) it works: you can check this link:
http://www.ecs.csun.edu/~qw123/Meta.html
http://www.ecs.csun.edu/~jackie/Meta.html
Now I use it in a Swing application, I got error: Class not found(it shoud
be there) and nullPointerException.
Please take a look the attached file.
--------------error-------------------------------------
java.lang.ClassNotFoundException:My.java
Exception occurred during event dispatching:
java.lang.NullPointerException
at My$2.getClassMethods(MY.java, Compiled Code)
at My$2.actionPerformed(My.java:112)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1066)
at javax.swing.............
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
istener.java:204)
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.Component.dispatchEvent(Component.java, Compiled Code)
at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code)
at
java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java, C
ompiled Code)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
My.java
JavaCodeFilter.java
PreviewPanel.java
SuffixAwareFilter.java
TextFilter.java
TextPreviewer.java