Mouse position.
post and replies

How does one access the move position (x y) shown in the yellow box of the drawing panel? I wanted to click on the screen and use the mouse position for a trace or a new drawable circle or rectangle. This seems way too easy but I haven't yet found an example that uses this. Any help will be appreciated

Exception in thread "Thread-2" java.lang.NullPointerException at org.opensourcephysics.display.InteractivePanel.getMouseIntX(Unknown Source) at ch4.tryimage_pkg.tryimage._evolution1(tryimage.java:235) at ch4.tryimage_pkg.tryimage._stepModel(tryimage.java:190) at org.colos.ejs.library.Animation.step(Unknown Source) at org.colos.ejs.library.Animation.run(Unknown Source) at java.lang.Thread.run(Unknown Source)