You are not logged in.
Pages: 1
Well this is a long shot, but I hopefully someone here can help. The goal is to use Introspection and Reflection. In short, the program creates a JFrame, left side is another JFrame and it displays an object, Rect, Circ or Ticker. Rigth side has a dropdown menu where you select which object is displayed. Under it (still right side) there are 2 more JFrames. One with the property names and the other with the property values of whatever is displayed (rect, circ or ticket). See picture below.
When an item in a text field is changed, it is supposed to redraw the object. However, I get null pointer exception. See here. Lines 336 and 183 are problematic, but I can't see why.
The following classes are present: Rect, Circ, Ticker, RectBeanInfo, CircBeanInfo, TickerBeanInfo, JFrameExt (the testing class).
I've tried to rename the jtfActionPerformed to just a general actionPerfomed, didn't help.
Rect, Circ and Ticker are identical so I will only include one of them in case you need.
This is the last part that I need to fix, the reflection of the changes. Please advise if you can in any way.
Offline
Form a quick glimpse it seems that your "targetBeanObject" is null in method.invoke. Which leads me to that Beans.instantiate returned null.
Offline
Pages: 1