like this
- if (mouseX>100&&mouseX<100+100&&mouseY>10&&mouseY<10+100)
- {
- imgBig=img1a.get(0, 0, img1a.width, img1a.height);
- }
- else if (mouseX>300&&mouseX<300+100&&mouseY>10&&mouseY<10+100)
- {
- imgBig=img2a.get(0, 0, img1a.width, img1a.height);
- }
- else if (mouseX>500&&mouseX<500+100&&mouseY>10&&mouseY<10+100)
- {
- imgBig=img3a.get(0, 0, img1a.width, img1a.height);
- }
- //