I have the following Java method, which I am trying to use to add some buttons to a GUI:

```
private void addButtons(){
    JButton addBtn = new JButton("Add");
    JButton saveBtn = new JButton("Save");

    addBtn.addActionListener(new ActionListener(){
        public void actionPerformed(ActionEvent e){
            /*Code to be added here */
        }
    });
    addBtn.setBounds(1150, 135, 30, 15);

    saveBtn.addActionListener(new ActionListener(){
        public void actionPerformed(ActionEvent e){
            /*Code to be added here */
        }
    });
    saveBtn.setBounds(1190, 135, 30, 15);
System.out.println("'addButtons()' method is being called");
}

```

I am calling this method from a `private void initialize()` method in the same class. I know that `initialize()` is being called because all of the other method calls that it performs are happening, and displaying in the GUI. 

However, for some reason, the buttons that I am trying to create and add to my GUI with this method are not being displayed...

Can anyone point out to me why this is, and what I'm doing wrong?

**Edit**

Apologies- I'm calling the method in a `private void initialize()` method in the same class:

```
private void initialize(){
    ...
    (other code that is successfully adding stuff to the GUI)
    ...
    addButtons();
}

```

I am seeing the `System.out.println()` message from the end of the `addButtons()` method in the console when I click the button that calls the `initialize()` method... and all of the other code from the `initialize()' method is being called (for example, it's opening a new window, and adding some text, textboxes and tables to the window)...

**Edit 26/06/2014 @ 09:15**

The class where I have written this code extends `JPanel`:

```
public class JConfigurationPane extends JPanel implements UndoableEditListener, ChangeListener

```

I am now no longer using the `addButtons()` method that I had previously mentioned, and am trying to use my `initialize()` method to add the buttons to the JPanel:

```
public void initialize(){
    // Code that initialises other elements in the GUI, such as Jlabels, layout, etc

    JButton addBtn = new JButton("Add");
    JButton saveBtn = new JButton("Save");

    this.add(addBtn);
    this.add(saveBtn);
}

```

But the buttons still don't appear when I run the application, even though all of the other graphical elements in the `initialize()` method do... Any ideas why this is? I've added some debug before and after where I create the buttons, and where I add them to the GUI- the debug is displayed in the console, so the code to create and add the buttons must be called...