[SWING]Adding JButton(class1) to JPanel(class2)

Hello, I have a problem. I have one class with the JButtons and one class with the JPanel. I want to add the JButtons from one class to the JPanel in another class. How do I do this?

I can get it to work if the buttons are in the JPanel class this.add(button). But how do I do when they are in two classes? I've played around with objects and peer-objects but no success because I'm so new to this.

I'm gonna have an ActionListener to the the buttons if that matters.
Any suggestions?

Add a method in the class that has you JButtons say call it getButton() that will return a JButton, create an instance of the Button class in the Panel class and call the button class' getButton() method.

It gives error on _button = _buttons.getNrButton(); <- Here i get the JButton _button1 from the class with my buttons, and make it an object in the panel class right? But it seems like my panel class doesnt know that it is an JButton?