public JPanel getButtonPanel() {
JButton jButton = new JButton("BTT1");
//...
//crear los demas botones
JPanel tab = new JPanel();
tab.setLayout(new java.awt.GridLayout(2, 4, 10, 10));
tab.add(jButton);
//...
//agrega el resto de Bottones
//....
// agregar eventos etc.
return tab;
}
//...
MyTabbedPane= new javax.swing.JTabbedPane();
ButtonPanel mytab= new ButtonPanel();
MyTabbedPane.addTab("Pestania 1", mytab);
//...
setBorder(javax.swing.BorderFactory.createEmptyBorder(10, 10, 10, 10));