I am developing an application for showcasing internal mapping of my college.
now the problem is to access a new map(staffroom) from previous map( top view of floor) .i want that on clicking of staffroom area in a complete top view of a floor ,detailed map of staffroom replaces the previous one in the same canvas.
for this i tried a code but that's not working
:
protected void paint(Graphics g)
{
if((lastPointerX> 269 & lastPointerX < 300)& (lastPointerY> 217 & lastPointerY< 238))
{
g.drawImage(staffroom,0,0, Graphics.TOP | Graphics.LEFT);
}
else
g.drawImage(topview,0,0, Graphics.TOP | Graphics.LEFT);
}
Need help urgent...

Reply With Quote

