public class ManageBooks extends javax.swing.JPanel { public void Book() { initComponents(); } /** Creates new form ManageBooks */ /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ // private void initComponents() { jButton1 = new javax.swing.JButton(); jButton1.setText("jButton1"); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .add(126, 126, 126) .add(jButton1) .addContainerGap(203, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .add(64, 64, 64) .add(jButton1) .addContainerGap(213, Short.MAX_VALUE)) ); }// // Variables declaration - do not modify private javax.swing.JButton jButton1; // End of variables declaration