I am trying to write custom code that can interact with view objects.
For example:
// ===================== public double getmode () { double getmode;
getmode = 111.23;
getmode = _view.plate.getX();
// The view contains a 3d drawing panel with a cylinder named "plate"
return getmode; }
// =====================
This gives a run time error like this:
===================== Exception in thread "main" java.lang.NullPointerException at users.__psb.simple_plate_pkg.simple_plate.getmode(simple_plate.java:458) at users.__psb.simple_plate_pkg.simple_plate.(simple_plate.java:251) at users.__psb.simple_plate_pkg.simple_plate.(simple_plate.java:137) at users.__psb.simple_plate_pkg.simple_plate.main(simple_plate.java:126) =====================