2 Replies Latest reply on May 24, 2011 3:40 PM by morgalr

    Java2D help to show filling something to image(beaker in chemistry lab)


      I'm doing a project to implement a virtual chemistry laboratory system. I tried to do this by using java2D. I have come across a big issue here. that is how to show some kind of filling effect to a beaker or to a flask (beaker is an image). I tried out this with setPixel() method in WritableRaster(java.awt.image) class. but it is not much useful.

      I need a help to show something filling to a beaker (filling water to a beaker) and to show color change when mixing two chemicals. please remember that beaker is an image. thanks in advance if anyone can give me a solution with sample code.