JButton btnCancelar_1 = new JButton("Cancelar");
this.separator = new JSeparator();
this.separator.setOrientation(SwingConstants.VERTICAL);
GroupLayout gl_panel = new GroupLayout(panel);
gl_panel.setHorizontalGroup(
gl_panel.createParallelGroup(Alignment.LEADING)
.addGroup(gl_panel.createSequentialGroup()
.addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
.addGroup(gl_panel.createSequentialGroup()
.addContainerGap()
.addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
.addComponent(lblNewLabel)
.addComponent(lblApellidos)
.addComponent(lblNewLabel_1)
.addComponent(lblNewLabel_2)
.addComponent(lblNewLabel_3)
.addComponent(lblEquipo))
.addGap(33)
.addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
.addComponent(this.cbEquipo, GroupLayout.PREFERRED_SIZE, 187, GroupLayout.PREFERRED_SIZE)
.addGroup(gl_panel.createParallelGroup(Alignment.TRAILING, false)
.addComponent(this.txtTelefono, Alignment.LEADING)
.addComponent(this.txtDireccion, Alignment.LEADING)
.addComponent(this.txtNombreJugador, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 136, Short.MAX_VALUE)
.addComponent(this.txtApellidos, Alignment.LEADING)
.addComponent(this.txtFechaNacimiento, Alignment.LEADING))))
.addGroup(gl_panel.createSequentialGroup()
.addGap(53)
.addComponent(btnInsertar_1)
.addGap(18)
.addComponent(btnCancelar_1)))
.addGap(18)
.addComponent(this.separator, GroupLayout.PREFERRED_SIZE, 16, GroupLayout.PREFERRED_SIZE)
.addContainerGap(288, Short.MAX_VALUE))
);
gl_panel.setVerticalGroup(
gl_panel.createParallelGroup(Alignment.TRAILING)
.addGroup(gl_panel.createSequentialGroup()
.addGap(26)
.addGroup(gl_panel.createParallelGroup(Alignment.BASELINE)
.addComponent(this.txtNombreJugador, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addComponent(lblNewLabel))
.addPreferredGap(ComponentPlacement.RELATED)
.addGroup(gl_panel.createParallelGroup(Alignment.BASELINE)
.addComponent(this.txtApellidos, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addComponent(lblApellidos))
.addPreferredGap(ComponentPlacement.RELATED)
.addGroup(gl_panel.createParallelGroup(Alignment.BASELINE)
.addComponent(this.txtFechaNacimiento, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addComponent(lblNewLabel_1))
.addPreferredGap(ComponentPlacement.RELATED)
.addGroup(gl_panel.createParallelGroup(Alignment.BASELINE)
.addComponent(this.txtDireccion, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addComponent(lblNewLabel_2))
.addPreferredGap(ComponentPlacement.RELATED)
.addGroup(gl_panel.createParallelGroup(Alignment.BASELINE)
.addComponent(this.txtTelefono, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addComponent(lblNewLabel_3))
.addPreferredGap(ComponentPlacement.RELATED)
.addGroup(gl_panel.createParallelGroup(Alignment.BASELINE)
.addComponent(this.cbEquipo, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addComponent(lblEquipo))
.addGap(34)
.addGroup(gl_panel.createParallelGroup(Alignment.BASELINE)
.addComponent(btnInsertar_1)
.addComponent(btnCancelar_1))
.addContainerGap(111, Short.MAX_VALUE))
.addGroup(gl_panel.createSequentialGroup()
.addContainerGap(15, Short.MAX_VALUE)
.addComponent(this.separator, GroupLayout.PREFERRED_SIZE, 316, GroupLayout.PREFERRED_SIZE)
.addGap(15))
);
panel.setLayout(gl_panel);
JPanel panel_1 = new JPanel();
tabbedPane.addTab("Equipos", null, panel_1, null);
txtNombreEquipo = new JTextField();
this.txtNombreEquipo.setEditable(false);
txtNombreEquipo.setColumns(10);
txtPatrocinador = new JTextField();
this.txtPatrocinador.setEditable(false);
txtPatrocinador.setColumns(10);
txtColor1 = new JTextField();
this.txtColor1.setEditable(false);
txtColor1.setColumns(10);
txtColor2 = new JTextField();
this.txtColor2.setEditable(false);
txtColor2.setColumns(10);
txtCategoria = new JTextField();
this.txtCategoria.setEditable(false);
txtCategoria.setColumns(10);
JLabel lblNombre = new JLabel("Nombre");
lblNombre.setFont(new Font("Tahoma", Font.BOLD, 11));
JLabel lblPatrocinador = new JLabel("Patrocinador");
JLabel lblCamiseta = new JLabel("Camiseta 1");
JLabel lblCamiseta_1 = new JLabel("Camiseta 2");
JLabel lblCategora = new JLabel("Categor\u00EDa");
btGuardarEquipo = new JButton("Guardar");
this.btGuardarEquipo.setEnabled(false);
btGuardarEquipo.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
guardarEquipo();
}
});
btCancelarEquipo = new JButton("Cancelar");
this.btCancelarEquipo.setEnabled(false);
btCancelarEquipo.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
cancelarEquipo();
}
});
this.separator_1 = new JSeparator();
this.separator_1.setOrientation(SwingConstants.VERTICAL);
this.scrollPane = new JScrollPane();
this.btEliminarEquipo = new JButton("Eliminar");
this.btEliminarEquipo.setEnabled(false);
this.btEliminarEquipo.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
eliminarEquipo();
}
});
this.btModificarEquipo = new JButton("Modificar");
this.btModificarEquipo.setEnabled(false);
this.btModificarEquipo.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
modificarEquipo();
}
});
this.btNuevoEquipo = new JButton("Nuevo");
this.btNuevoEquipo.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
nuevoEquipo();
}
});
this.txtFiltro = new JTextField();
this.txtFiltro.addKeyListener(new KeyAdapter() {
@Override
public void keyTyped(KeyEvent arg0) {
aplicarFiltroEquipo();
}
});
this.txtFiltro.setColumns(10);
this.btCancelarFiltro = new JButton("X");
this.btCancelarFiltro.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
cancelarFiltroEquipo();
}
});
GroupLayout gl_panel_1 = new GroupLayout(panel_1);
gl_panel_1.setHorizontalGroup(
gl_panel_1.createParallelGroup(Alignment.LEADING)
.addGroup(gl_panel_1.createSequentialGroup()
.addContainerGap()
.addGroup(gl_panel_1.createParallelGroup(Alignment.TRAILING)
.addGroup(gl_panel_1.createSequentialGroup()
.addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
.addComponent(lblNombre)
.addComponent(lblPatrocinador)
.addComponent(lblCamiseta)
.addComponent(lblCamiseta_1)
.addComponent(lblCategora))
.addGap(16)
.addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
.addComponent(this.txtCategoria, GroupLayout.PREFERRED_SIZE, 139, GroupLayout.PREFERRED_SIZE)
.addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING, false)
.addComponent(this.txtNombreEquipo, GroupLayout.DEFAULT_SIZE, 139, Short.MAX_VALUE)
.addComponent(this.txtPatrocinador)
.addComponent(this.txtColor1)
.addComponent(this.txtColor2))))
.addGroup(gl_panel_1.createSequentialGroup()
.addComponent(this.btNuevoEquipo)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(this.btGuardarEquipo)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(this.btCancelarEquipo)))
.addGap(29)
.addComponent(this.separator_1, GroupLayout.PREFERRED_SIZE, 8, GroupLayout.PREFERRED_SIZE)
.addGap(18)
.addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
.addGroup(gl_panel_1.createParallelGroup(Alignment.TRAILING)
.addComponent(this.scrollPane, GroupLayout.PREFERRED_SIZE, 312, GroupLayout.PREFERRED_SIZE)
.addGroup(gl_panel_1.createSequentialGroup()
.addComponent(this.btModificarEquipo)
.addPreferredGap(ComponentPlacement.UNRELATED)
.addComponent(this.btEliminarEquipo)))
.addGroup(gl_panel_1.createSequentialGroup()
.addComponent(this.txtFiltro, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(this.btCancelarFiltro)))
.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
gl_panel_1.setVerticalGroup(
gl_panel_1.createParallelGroup(Alignment.TRAILING)
.addGroup(gl_panel_1.createSequentialGroup()
.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
.addComponent(this.separator_1, GroupLayout.DEFAULT_SIZE, 308, Short.MAX_VALUE)
.addGroup(gl_panel_1.createSequentialGroup()
.addGroup(gl_panel_1.createParallelGroup(Alignment.BASELINE)
.addComponent(this.txtNombreEquipo, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addComponent(lblNombre))
.addPreferredGap(ComponentPlacement.RELATED)
.addGroup(gl_panel_1.createParallelGroup(Alignment.BASELINE)
.addComponent(this.txtPatrocinador, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addComponent(lblPatrocinador))
.addPreferredGap(ComponentPlacement.RELATED)
.addGroup(gl_panel_1.createParallelGroup(Alignment.BASELINE)
.addComponent(this.txtColor1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addComponent(lblCamiseta))
.addPreferredGap(ComponentPlacement.RELATED)
.addGroup(gl_panel_1.createParallelGroup(Alignment.BASELINE)
.addComponent(this.txtColor2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addComponent(lblCamiseta_1))
.addPreferredGap(ComponentPlacement.RELATED)
.addGroup(gl_panel_1.createParallelGroup(Alignment.BASELINE)
.addComponent(this.txtCategoria, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addComponent(lblCategora))
.addGap(32)
.addGroup(gl_panel_1.createParallelGroup(Alignment.BASELINE)
.addComponent(this.btCancelarEquipo)
.addComponent(this.btGuardarEquipo)
.addComponent(this.btNuevoEquipo)))
.addGroup(gl_panel_1.createSequentialGroup()
.addGap(11)
.addGroup(gl_panel_1.createParallelGroup(Alignment.BASELINE)
.addComponent(this.txtFiltro, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addComponent(this.btCancelarFiltro))
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(this.scrollPane, GroupLayout.PREFERRED_SIZE, 242, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(gl_panel_1.createParallelGroup(Alignment.BASELINE)
.addComponent(this.btEliminarEquipo)
.addComponent(this.btModificarEquipo))))
.addGap(11))
);