Re: moving more than one image using a mouse
bH wrote:
Hi All
I am looking for a program that will demo moving more than one image
with a mouse that is on a panel.
I suggest you look further..
I have downloaded the program below and the first error reported was
the absence/can't find:
" import sim.util.*;"
...
source : http://www.simtools.com/ShapeDemo.html
..that applet is deployed as loose class files.
It uses 6 classes from the sim.util package.
The author has not documented it well, and seems
not interested in open sourcing or helping others to
deploy it - but it seems offere as a service entirely
coded by the author.
If you are interested in that option, I suggest contacting
the guy that wrote it (his email is on the main page)
and take it up with him.
OTOH, if you want to code it yourself, or get
help with that on public forums, it would be
necessary to look to other alternatives.
As far as coding what that applet does, I think
the best way would be to
- define each type of shape as a class (or
extension of another class) and include a
Z-order index in that definition.
- store the shapes in an ArrayList as they
are created, and..
- draw the image fresh for each change.
HTH
--
Andrew Thompson
http://www.athompson.info/andrew/
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-setup/200707/1