Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (clicked != null) {
- final int mx = (int)mouse.getLocation().getX();
- final int my = (int)mouse.getLocation().getY();
- final long mpt = System.currentTimeMillis() - mouse.getPressTime();
- if (mouse.getPressTime() == -1 || mpt >= 300)
- g.drawImage(normal, mx - 23, my - 13, null);
- if (mpt < 300)
- g.drawImage(clicked, mx - 23, my - 13, null);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement