getAccept().setIcon(new ImageIcon("resources/images/check.png"));
setRefuse(new JButton());
getRefuse().setIcon(new ImageIcon("resources/images/x.png"));
//implements listeners
getAccept().addActionListener(new ButtonConfirmFriendship(mainView,u, this));
getRefuse().addActionListener(new ButtonConfirmFriendship(mainView,u, this));
//add buttons to layout
this.add(getAccept());
this.add(getRefuse());