Package calendar.vista

Source Code of calendar.vista.AltaHorario

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

/*
* AltaHorario.java
*
* Created on 07/06/2010, 12:36:22
*/

package calendar.vista;

import calendar.dao.Dao;
import calendar.domino.Comisiones;
import calendar.domino.Horarios;
import calendar.domino.Materias;
import calendar.domino.Profesores;

/**
*
* @author gaby
*/
public class AltaHorario extends javax.swing.JDialog {

    Dao horarioDao;
    Dao comisionDao;
    Dao profesorDao;
    Dao materiaDao;

    /** Creates new form AltaHorario */
    public AltaHorario(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
        inicio();
    }
    public AltaHorario(javax.swing.JDialog parent, boolean modal) {
        super(parent, modal);
        initComponents();
        inicio();
    }
    private void inicio(){
        jComboBoxMateria.setEnabled(false);
        jRadioButtonEvento.setSelected(true);
        horarioDao = new Dao(new Horarios());
        comisionDao = new Dao(new Comisiones());
        profesorDao = new Dao(new Profesores());
        materiaDao = new Dao(new Materias());
       
    }
    /** 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() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        buttonGroup2 = new javax.swing.ButtonGroup();
        jComboBoxComision = new javax.swing.JComboBox();
        jLabel2 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jComboBoxEstado = new javax.swing.JComboBox();
        jComboBoxAula = new javax.swing.JComboBox();
        jScrollPane1 = new javax.swing.JScrollPane();
        jListProfesorOrigen = new javax.swing.JList();
        jButtonAgregar = new javax.swing.JButton();
        jButtonQuitar = new javax.swing.JButton();
        jPanel1 = new javax.swing.JPanel();
        jRadioButtonEvento = new javax.swing.JRadioButton();
        jComboBoxMateria = new javax.swing.JComboBox();
        jTextFieldEvento = new javax.swing.JTextField();
        jRadioButton1 = new javax.swing.JRadioButton();
        jScrollPane2 = new javax.swing.JScrollPane();
        jListProfesorDestino = new javax.swing.JList();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jComboBoxCalendarioAcademico = new javax.swing.JComboBox();
        jRadioButton2 = new javax.swing.JRadioButton();
        jRadioButton3 = new javax.swing.JRadioButton();
        jLabel4 = new javax.swing.JLabel();
        jComboBoxHoraInicio = new javax.swing.JComboBox();
        jLabel1 = new javax.swing.JLabel();
        jComboBoxFechaInicio = new javax.swing.JComboBox();
        jComboBoxHoraFinal = new javax.swing.JComboBox();
        jComboBoxFechaFinal = new javax.swing.JComboBox();
        jCheckBoxDiaCompleto = new javax.swing.JCheckBox();
        jLabel9 = new javax.swing.JLabel();
        jComboBox10 = new javax.swing.JComboBox();
        jCheckBoxLunes = new javax.swing.JCheckBox();
        jCheckBoxMiercoles = new javax.swing.JCheckBox();
        jCheckBoxMartes = new javax.swing.JCheckBox();
        jCheckBoxJueves = new javax.swing.JCheckBox();
        jCheckBoxViernes = new javax.swing.JCheckBox();
        jCheckBoxSabado = new javax.swing.JCheckBox();
        jCheckBoxDomingo = new javax.swing.JCheckBox();
        jScrollPane3 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        jButtonAcept = new javax.swing.JButton();
        jButtonCancel = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(calendar.vista.CalendarApp.class).getContext().getResourceMap(AltaHorario.class);
        setTitle(resourceMap.getString("Form.title")); // NOI18N
        setModal(true);

        jComboBoxComision.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        jComboBoxComision.setName("jComboBoxComision"); // NOI18N

        jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
        jLabel2.setName("jLabel2"); // NOI18N

        jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N
        jLabel7.setName("jLabel7"); // NOI18N

        jComboBoxEstado.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        jComboBoxEstado.setName("jComboBoxEstado"); // NOI18N

        jComboBoxAula.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        jComboBoxAula.setName("jComboBoxAula"); // NOI18N

        jScrollPane1.setName("jScrollPane1"); // NOI18N

        jListProfesorOrigen.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jListProfesorOrigen.setName("jListProfesorOrigen"); // NOI18N
        jScrollPane1.setViewportView(jListProfesorOrigen);

        jButtonAgregar.setText(resourceMap.getString("jButtonAgregar.text")); // NOI18N
        jButtonAgregar.setName("jButtonAgregar"); // NOI18N

        jButtonQuitar.setText(resourceMap.getString("jButtonQuitar.text")); // NOI18N
        jButtonQuitar.setName("jButtonQuitar"); // NOI18N

        jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel1.setName("jPanel1"); // NOI18N

        buttonGroup1.add(jRadioButtonEvento);
        jRadioButtonEvento.setText(resourceMap.getString("jRadioButtonEvento.text")); // NOI18N
        jRadioButtonEvento.setName("jRadioButtonEvento"); // NOI18N
        jRadioButtonEvento.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jRadioButtonEventoMouseClicked(evt);
                jRadioButtonEventoMouseClicked1(evt);
                jRadioButtonEventoMouseClicked2(evt);
            }
        });

        jComboBoxMateria.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        jComboBoxMateria.setName("jComboBoxMateria"); // NOI18N

        jTextFieldEvento.setName("jTextFieldEvento"); // NOI18N

        buttonGroup1.add(jRadioButton1);
        jRadioButton1.setText(resourceMap.getString("jRadioButton1.text")); // NOI18N
        jRadioButton1.setName("jRadioButton1"); // NOI18N
        jRadioButton1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jRadioButton1MouseClicked(evt);
                jRadioButton1MouseClicked1(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(2, 2, 2)
                .addComponent(jRadioButton1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jComboBoxMateria, javax.swing.GroupLayout.PREFERRED_SIZE, 573, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(32, Short.MAX_VALUE))
            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel1Layout.createSequentialGroup()
                    .addGap(1, 1, 1)
                    .addComponent(jRadioButtonEvento)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jTextFieldEvento, javax.swing.GroupLayout.PREFERRED_SIZE, 568, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(40, Short.MAX_VALUE)))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap(55, Short.MAX_VALUE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBoxMateria, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jRadioButton1))
                .addGap(20, 20, 20))
            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel1Layout.createSequentialGroup()
                    .addGap(23, 23, 23)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                        .addComponent(jRadioButtonEvento)
                        .addComponent(jTextFieldEvento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(52, Short.MAX_VALUE)))
        );

        jScrollPane2.setName("jScrollPane2"); // NOI18N

        jListProfesorDestino.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jListProfesorDestino.setName("jListProfesorDestino"); // NOI18N
        jScrollPane2.setViewportView(jListProfesorDestino);

        jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
        jLabel5.setName("jLabel5"); // NOI18N

        jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
        jLabel6.setName("jLabel6"); // NOI18N

        jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
        jLabel3.setName("jLabel3"); // NOI18N

        jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N
        jLabel8.setName("jLabel8"); // NOI18N

        jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel2.setName("jPanel2"); // NOI18N

        jComboBoxCalendarioAcademico.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        jComboBoxCalendarioAcademico.setName("jComboBoxCalendarioAcademico"); // NOI18N

        buttonGroup2.add(jRadioButton2);
        jRadioButton2.setText(resourceMap.getString("jRadioButton2.text")); // NOI18N
        jRadioButton2.setName("jRadioButton2"); // NOI18N

        buttonGroup2.add(jRadioButton3);
        jRadioButton3.setText(resourceMap.getString("jRadioButton3.text")); // NOI18N
        jRadioButton3.setName("jRadioButton3"); // NOI18N

        jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
        jLabel4.setName("jLabel4"); // NOI18N

        jComboBoxHoraInicio.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        jComboBoxHoraInicio.setName("jComboBoxHoraInicio"); // NOI18N

        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        jComboBoxFechaInicio.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        jComboBoxFechaInicio.setName("jComboBoxFechaInicio"); // NOI18N

        jComboBoxHoraFinal.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        jComboBoxHoraFinal.setName("jComboBoxHoraFinal"); // NOI18N

        jComboBoxFechaFinal.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        jComboBoxFechaFinal.setName("jComboBoxFechaFinal"); // NOI18N

        jCheckBoxDiaCompleto.setText(resourceMap.getString("jCheckBoxDiaCompleto.text")); // NOI18N
        jCheckBoxDiaCompleto.setName("jCheckBoxDiaCompleto"); // NOI18N
        jCheckBoxDiaCompleto.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jCheckBoxDiaCompletoMouseClicked(evt);
                jCheckBoxDiaCompletoMouseClicked1(evt);
                jCheckBoxDiaCompletoMouseClicked2(evt);
                jCheckBoxDiaCompletoMouseClicked3(evt);
                jCheckBoxDiaCompletoMouseClicked4(evt);
            }
        });
        jCheckBoxDiaCompleto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCheckBoxDiaCompletoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel4)
                        .addGap(26, 26, 26)
                        .addComponent(jComboBoxFechaInicio, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jComboBoxHoraInicio, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel1)
                        .addGap(27, 27, 27)
                        .addComponent(jComboBoxFechaFinal, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jComboBoxHoraFinal, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jCheckBoxDiaCompleto))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jRadioButton2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBoxCalendarioAcademico, javax.swing.GroupLayout.PREFERRED_SIZE, 216, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jRadioButton3))
                .addContainerGap(37, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jComboBoxCalendarioAcademico, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jRadioButton2))
                .addGap(18, 18, 18)
                .addComponent(jRadioButton3)
                .addGap(18, 18, 18)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jComboBoxFechaFinal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBoxHoraInicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBoxFechaInicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel4)
                    .addComponent(jComboBoxHoraFinal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel1)
                    .addComponent(jCheckBoxDiaCompleto))
                .addContainerGap(41, Short.MAX_VALUE))
        );

        jLabel9.setText(resourceMap.getString("jLabel9.text")); // NOI18N
        jLabel9.setName("jLabel9"); // NOI18N

        jComboBox10.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        jComboBox10.setName("jComboBox10"); // NOI18N
        jComboBox10.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBox10ItemStateChanged(evt);
                jComboBox10ItemStateChanged1(evt);
                jComboBox10ItemStateChanged2(evt);
                jComboBox10ItemStateChanged3(evt);
                jComboBox10ItemStateChanged4(evt);
                jComboBox10ItemStateChanged5(evt);
                jComboBox10ItemStateChanged6(evt);
            }
        });

        jCheckBoxLunes.setText(resourceMap.getString("jCheckBoxLunes.text")); // NOI18N
        jCheckBoxLunes.setName("jCheckBoxLunes"); // NOI18N

        jCheckBoxMiercoles.setText(resourceMap.getString("jCheckBoxMiercoles.text")); // NOI18N
        jCheckBoxMiercoles.setName("jCheckBoxMiercoles"); // NOI18N

        jCheckBoxMartes.setText(resourceMap.getString("jCheckBoxMartes.text")); // NOI18N
        jCheckBoxMartes.setName("jCheckBoxMartes"); // NOI18N

        jCheckBoxJueves.setText(resourceMap.getString("jCheckBoxJueves.text")); // NOI18N
        jCheckBoxJueves.setName("jCheckBoxJueves"); // NOI18N

        jCheckBoxViernes.setText(resourceMap.getString("jCheckBoxViernes.text")); // NOI18N
        jCheckBoxViernes.setName("jCheckBoxViernes"); // NOI18N

        jCheckBoxSabado.setText(resourceMap.getString("jCheckBoxSabado.text")); // NOI18N
        jCheckBoxSabado.setName("jCheckBoxSabado"); // NOI18N

        jCheckBoxDomingo.setText(resourceMap.getString("jCheckBoxDomingo.text")); // NOI18N
        jCheckBoxDomingo.setName("jCheckBoxDomingo"); // NOI18N

        jScrollPane3.setName("jScrollPane3"); // NOI18N

        jTextArea1.setColumns(20);
        jTextArea1.setRows(5);
        jTextArea1.setName("jTextArea1"); // NOI18N
        jScrollPane3.setViewportView(jTextArea1);

        jButtonAcept.setText(resourceMap.getString("jButtonAcept.text")); // NOI18N
        jButtonAcept.setName("jButtonAcept"); // NOI18N

        jButtonCancel.setText(resourceMap.getString("jButtonCancel.text")); // NOI18N
        jButtonCancel.setName("jButtonCancel"); // NOI18N

        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(10, 10, 10)
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addComponent(jLabel8))
            .addGroup(layout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(layout.createSequentialGroup()
                .addGap(100, 100, 100)
                .addComponent(jLabel2)
                .addGap(4, 4, 4)
                .addComponent(jComboBoxComision, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(154, 154, 154)
                .addComponent(jLabel9)
                .addGap(4, 4, 4)
                .addComponent(jComboBox10, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(119, 119, 119)
                .addComponent(jCheckBoxDomingo)
                .addGap(18, 18, 18)
                .addComponent(jCheckBoxLunes)
                .addGap(11, 11, 11)
                .addComponent(jCheckBoxMartes)
                .addGap(18, 18, 18)
                .addComponent(jCheckBoxMiercoles)
                .addGap(23, 23, 23)
                .addComponent(jCheckBoxJueves)
                .addGap(18, 18, 18)
                .addComponent(jCheckBoxViernes)
                .addGap(18, 18, 18)
                .addComponent(jCheckBoxSabado))
            .addGroup(layout.createSequentialGroup()
                .addGap(170, 170, 170)
                .addComponent(jLabel3)
                .addGap(15, 15, 15)
                .addComponent(jComboBoxAula, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addComponent(jLabel5)
                .addGap(10, 10, 10)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 237, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(15, 15, 15)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButtonAgregar)
                    .addComponent(jButtonQuitar, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(13, 13, 13)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 266, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(160, 160, 160)
                .addComponent(jLabel7)
                .addGap(3, 3, 3)
                .addComponent(jComboBoxEstado, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(50, 50, 50)
                .addComponent(jLabel6)
                .addGap(12, 12, 12)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 390, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(148, 148, 148)
                .addComponent(jButtonAcept)
                .addGap(140, 140, 140)
                .addComponent(jButtonCancel))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(41, 41, 41)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jLabel8)
                .addGap(6, 6, 6)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(6, 6, 6)
                        .addComponent(jLabel2))
                    .addComponent(jComboBoxComision, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(3, 3, 3)
                        .addComponent(jLabel9))
                    .addComponent(jComboBox10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(30, 30, 30)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jCheckBoxDomingo)
                    .addComponent(jCheckBoxLunes)
                    .addComponent(jCheckBoxMartes)
                    .addComponent(jCheckBoxMiercoles)
                    .addComponent(jCheckBoxJueves)
                    .addComponent(jCheckBoxViernes)
                    .addComponent(jCheckBoxSabado))
                .addGap(14, 14, 14)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel3)
                    .addComponent(jComboBoxAula, 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.LEADING)
                    .addComponent(jLabel5)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(8, 8, 8)
                        .addComponent(jButtonAgregar)
                        .addGap(17, 17, 17)
                        .addComponent(jButtonQuitar))
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(12, 12, 12)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel7)
                    .addComponent(jComboBoxEstado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(10, 10, 10)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(jLabel6))
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButtonAcept)
                    .addComponent(jButtonCancel)))
        );

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

    private void jCheckBoxDiaCompletoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxDiaCompletoActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jCheckBoxDiaCompletoActionPerformed

    private void jCheckBoxDiaCompletoMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jCheckBoxDiaCompletoMouseClicked
        jComboBoxHoraFinal.setEnabled(false);
    }//GEN-LAST:event_jCheckBoxDiaCompletoMouseClicked

    private void jCheckBoxDiaCompletoMouseClicked1(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jCheckBoxDiaCompletoMouseClicked1
        jComboBoxFechaFinal.setEnabled(false);
    }//GEN-LAST:event_jCheckBoxDiaCompletoMouseClicked1

    private void jCheckBoxDiaCompletoMouseClicked2(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jCheckBoxDiaCompletoMouseClicked2
        jComboBoxHoraInicio.setEnabled(false);
    }//GEN-LAST:event_jCheckBoxDiaCompletoMouseClicked2

    private void jCheckBoxDiaCompletoMouseClicked3(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jCheckBoxDiaCompletoMouseClicked3
        jComboBoxHoraInicio.setEnabled(false);
    }//GEN-LAST:event_jCheckBoxDiaCompletoMouseClicked3

    private void jCheckBoxDiaCompletoMouseClicked4(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jCheckBoxDiaCompletoMouseClicked4
        jComboBoxFechaInicio.setEnabled(false);
    }//GEN-LAST:event_jCheckBoxDiaCompletoMouseClicked4

    private void jComboBox10ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox10ItemStateChanged
        jCheckBoxDomingo.setVisible(false);
    }//GEN-LAST:event_jComboBox10ItemStateChanged

    private void jComboBox10ItemStateChanged1(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox10ItemStateChanged1
        jCheckBoxLunes.setVisible(false);
    }//GEN-LAST:event_jComboBox10ItemStateChanged1

    private void jComboBox10ItemStateChanged2(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox10ItemStateChanged2
        jCheckBoxMartes.setVisible(false);
    }//GEN-LAST:event_jComboBox10ItemStateChanged2

    private void jComboBox10ItemStateChanged3(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox10ItemStateChanged3
        jCheckBoxMiercoles.setVisible(false);
    }//GEN-LAST:event_jComboBox10ItemStateChanged3

    private void jComboBox10ItemStateChanged4(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox10ItemStateChanged4
        jCheckBoxJueves.setVisible(false);
    }//GEN-LAST:event_jComboBox10ItemStateChanged4

    private void jComboBox10ItemStateChanged5(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox10ItemStateChanged5
        jCheckBoxViernes.setVisible(false);
    }//GEN-LAST:event_jComboBox10ItemStateChanged5

    private void jComboBox10ItemStateChanged6(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox10ItemStateChanged6
        jCheckBoxSabado.setVisible(false);
    }//GEN-LAST:event_jComboBox10ItemStateChanged6

    private void jRadioButton1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jRadioButton1MouseClicked
        jTextFieldEvento.setEnabled(false);
    }//GEN-LAST:event_jRadioButton1MouseClicked

    private void jRadioButtonEventoMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jRadioButtonEventoMouseClicked
        jTextFieldEvento.setEnabled(true);
    }//GEN-LAST:event_jRadioButtonEventoMouseClicked

    private void jRadioButtonEventoMouseClicked1(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jRadioButtonEventoMouseClicked1
        jComboBoxMateria.setEnabled(false);
    }//GEN-LAST:event_jRadioButtonEventoMouseClicked1

    private void jRadioButton1MouseClicked1(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jRadioButton1MouseClicked1
        jComboBoxMateria.setEnabled(true);
    }//GEN-LAST:event_jRadioButton1MouseClicked1

    private void jRadioButtonEventoMouseClicked2(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jRadioButtonEventoMouseClicked2
    }//GEN-LAST:event_jRadioButtonEventoMouseClicked2

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                AltaHorario dialog = new AltaHorario(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.ButtonGroup buttonGroup2;
    private javax.swing.JButton jButtonAcept;
    private javax.swing.JButton jButtonAgregar;
    private javax.swing.JButton jButtonCancel;
    private javax.swing.JButton jButtonQuitar;
    private javax.swing.JCheckBox jCheckBoxDiaCompleto;
    private javax.swing.JCheckBox jCheckBoxDomingo;
    private javax.swing.JCheckBox jCheckBoxJueves;
    private javax.swing.JCheckBox jCheckBoxLunes;
    private javax.swing.JCheckBox jCheckBoxMartes;
    private javax.swing.JCheckBox jCheckBoxMiercoles;
    private javax.swing.JCheckBox jCheckBoxSabado;
    private javax.swing.JCheckBox jCheckBoxViernes;
    private javax.swing.JComboBox jComboBox10;
    private javax.swing.JComboBox jComboBoxAula;
    private javax.swing.JComboBox jComboBoxCalendarioAcademico;
    private javax.swing.JComboBox jComboBoxComision;
    private javax.swing.JComboBox jComboBoxEstado;
    private javax.swing.JComboBox jComboBoxFechaFinal;
    private javax.swing.JComboBox jComboBoxFechaInicio;
    private javax.swing.JComboBox jComboBoxHoraFinal;
    private javax.swing.JComboBox jComboBoxHoraInicio;
    private javax.swing.JComboBox jComboBoxMateria;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JList jListProfesorDestino;
    private javax.swing.JList jListProfesorOrigen;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JRadioButton jRadioButton1;
    private javax.swing.JRadioButton jRadioButton2;
    private javax.swing.JRadioButton jRadioButton3;
    private javax.swing.JRadioButton jRadioButtonEvento;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JTextField jTextFieldEvento;
    // End of variables declaration//GEN-END:variables

}
TOP

Related Classes of calendar.vista.AltaHorario

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.