@Override public void mouseEntered(MouseEvent e) { JPopupItemI item = getItem(e); if (item != null) { item.setBackground(JPopupItemI.HOVER_COLOR); } }
@Override public void mouseExited(MouseEvent e) { JPopupItemI item = getItem(e); if (item != null) { item.setBackground(JPopupItemI.DEFAULT_COLOR); } }
@Override public void mouseClicked(MouseEvent e) { JPopupItemI item = getItem(e); if (item != null) { files.setPictureList(item.getPictures()); } }