Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. public void mouseClicked(MouseEvent e) {
  2. Point click = e.getLocation();
  3. for (Item i : Inventory.getAllItems()) {
  4. if (i.getComponent().getContentRect().contains(click)) {
  5. targetItem = i;
  6. }
  7. }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement