posted 16 years ago
Dear Ranchhands,
I have highlighted the relevant code. The MyInterp class and PathWrangler2 class have been changed.
Windows it seems from my reading waits for the MouseReleased before the PopupMenu appears - it is just what it does - irritating but that is Windows - anyway some people use Windows.
When the PopupMenu appears I see the boolean - rotating - to true in the PathWrangler2 class through an ActionListener. This means that when someone next clicks on the object the MousePressed method moves to a certain snippet of the code and rotates the object.
The actual rotating code I took from a Sun forum and just used for my own ends.
I have highlighted the code added.
The Main class - no code changed here
MyInterp code 1 line of code added in the ActionListener lst 4
The code for PathWrangler2 where most of the changes have occured
The rotating does not work well if you do not click back on an object and it whirls too quickly.
Anyway.
Kind regards,
The Apprentice