26272829303132333435
this.add(aUserName, BorderLayout.CENTER); JButton addButton = new JButton(); addButton.addActionListener(new ButtonAddListener(mainView, u)); addButton.setIcon(new ImageIcon("resources/images/add.png")); this.add(addButton, BorderLayout.EAST); } }