ho questo codice però non riesco ad aggiungere un bottone me ne sono creato uno ma nevvorrei <ggiungere un altro mi potete spiegare dove e quale codi ce devo usare grazie.
import javax.swing.*;
import java.awt.*;

public class ButtonExampleFrame extends JFrame
{
public ButtonExampleFrame()
{
setTitle("FinestraBottone");
setSize(450, 400);



ButtonExamplePanel panel= new ButtonExamplePanel();
Container contentPane = getContentPane();
contentPane.add(panel);
}

public static void main (String[] args)
{
ButtonExampleFrame hi = new ButtonExampleFrame();
hi.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
hi.show();


}
}