Exemplo n.º 1
0
  /**
   * 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.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    informacionLabel = new javax.swing.JLabel();
    nombreLabel = new javax.swing.JLabel();
    nombreTextField = new javax.swing.JTextField();
    fechaInicioLabel = new javax.swing.JLabel();
    fechaInicioTextField = new javax.swing.JTextField();
    fechaFinLabel = new javax.swing.JLabel();
    fechaFinTextField = new javax.swing.JTextField();
    plazasLabel = new javax.swing.JLabel();
    plazasTextField = new javax.swing.JTextField();
    descripcionLabel = new javax.swing.JLabel();
    descripcionScrollPane = new javax.swing.JScrollPane();
    jTextArea1 = new javax.swing.JTextArea();
    Salir = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

    informacionLabel.setText("Informacion");

    nombreLabel.setText("Nombre");

    fechaInicioLabel.setText("Fecha inicio");

    fechaFinLabel.setText("Fecha Fin");

    plazasLabel.setText("Plazas");

    descripcionLabel.setText("Descripcion");

    jTextArea1.setColumns(20);
    jTextArea1.setRows(5);
    descripcionScrollPane.setViewportView(jTextArea1);

    Salir.setText("Salir");
    Salir.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            SalirActionPerformed(evt);
          }
        });

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addGap(20, 20, 20)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(
                                layout
                                    .createSequentialGroup()
                                    .addComponent(fechaInicioLabel)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(
                                        fechaInicioTextField,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        181,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(29, 29, 29)
                                    .addComponent(fechaFinLabel)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(fechaFinTextField))
                            .addGroup(
                                layout
                                    .createSequentialGroup()
                                    .addGroup(
                                        layout
                                            .createParallelGroup(
                                                javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(
                                                layout
                                                    .createSequentialGroup()
                                                    .addComponent(nombreLabel)
                                                    .addPreferredGap(
                                                        javax.swing.LayoutStyle.ComponentPlacement
                                                            .RELATED)
                                                    .addComponent(
                                                        nombreTextField,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                                        239,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addComponent(informacionLabel)
                                            .addGroup(
                                                layout
                                                    .createSequentialGroup()
                                                    .addComponent(plazasLabel)
                                                    .addGap(18, 18, 18)
                                                    .addComponent(
                                                        plazasTextField,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                                        58,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(
                                                layout
                                                    .createSequentialGroup()
                                                    .addComponent(descripcionLabel)
                                                    .addPreferredGap(
                                                        javax.swing.LayoutStyle.ComponentPlacement
                                                            .RELATED)
                                                    .addComponent(
                                                        descripcionScrollPane,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                                        415,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addGap(0, 68, Short.MAX_VALUE)))
                    .addContainerGap())
            .addGroup(
                javax.swing.GroupLayout.Alignment.TRAILING,
                layout
                    .createSequentialGroup()
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(Salir)
                    .addGap(27, 27, 27)));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addGap(23, 23, 23)
                    .addComponent(informacionLabel)
                    .addGap(36, 36, 36)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(nombreLabel)
                            .addComponent(
                                nombreTextField,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(22, 22, 22)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(fechaInicioLabel)
                            .addComponent(
                                fechaInicioTextField,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(fechaFinLabel)
                            .addComponent(
                                fechaFinTextField,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(22, 22, 22)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(plazasLabel)
                            .addComponent(
                                plazasTextField,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(26, 26, 26)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(descripcionLabel)
                            .addComponent(
                                descripcionScrollPane,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                101,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(Salir)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    pack();
  } // </editor-fold>//GEN-END:initComponents