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

/*
 * mainForm.java
 *
 * Created on Jun 12, 2009, 6:44:11 PM
 */

package myschedulemanager;

import Modelnya.getFile;
import java.awt.Dimension;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import javax.swing.JTable;
import javax.swing.ListSelectionModel;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import javax.swing.table.TableColumn;
import javax.swing.table.TableModel;

/**
 *
 * @author Seamolec
 */
public class mainForm extends javax.swing.JFrame {

    private Timer tmjam;
    private TimerTask ttjam;
    private String[] data;
    private String[] det;
    private String fullData;

    /** Creates new form mainForm */
    public mainForm() {
        super("Schedule manager Application");
        initComponents();
        if (txId.getText().isEmpty()){
              btEdit.setEnabled(false);
              btDelete.setEnabled(false);
        }
        txId.setVisible(false);
        txDate.setVisible(false);
        txStart.setVisible(false);
        txEnd.setVisible(false);
        txSubject.setVisible(false);
        txClient.setVisible(false);
        txPlace.setVisible(false);
        txEvent.setVisible(false);
        textId.setVisible(false);
        btEdit.setEnabled(false);
        btDelete.setEnabled(false);
        if (btSaveEdit.isSelected()){
            jTable1.setModel(new TestTable1());
            this.jTable1=new JTable(this.jTable1.getModel());
            this.jTable1.repaint();            
        }
        jTable1.setModel(new TestTable1());
        jTable1.setPreferredScrollableViewportSize(new Dimension(500, 70));        
        pilih();        
        TableColumn column = null;
        for (int i = 0; i < 8; i++) {
            column = jTable1.getColumnModel().getColumn(i);
            if (i == 0) {
                column.setPreferredWidth(10); //sport column is bigger
            }if (i == 7) {
                column.setPreferredWidth(130); //sport column is bigger
            } else {
                //column.setPreferredWidth(10);
            }
        }

        jam();
        String dt= calendarEdit.getSelectedDate();
        try {
            data = new String[getFile.countLinebyDate(dt)];
            data=getFile.searchFilebyDate(dt);
            fullData = "";
            for (int i = 0; i < data.length; i++) {                
                det=data[i].split(";");
                fullData+=det[2]+" - "+det[3]+System.getProperty("line.separator")+"Subject : "+det[4]+System.getProperty("line.separator")+"Client : "+det[5]+System.getProperty("line.separator")+"Place : "+det[6]+System.getProperty("line.separator")+"---------------------------------------------------------"+System.getProperty("line.separator");
            }
            taSchedule.setText(fullData);
        } catch (FileNotFoundException ex) {
            Logger.getLogger(mainForm.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(mainForm.class.getName()).log(Level.SEVERE, null, ex);
        }

        jAddFrame.setVisible(false);
        jEditFrame.setVisible(false);        
    }

    public void pilih() {
        jTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        ListSelectionModel rowSM = jTable1.getSelectionModel();
        rowSM.addListSelectionListener(new MyList());        
    }



    class MyList implements ListSelectionListener {
        public void valueChanged(ListSelectionEvent e) {
            if (e.getValueIsAdjusting()) {
                return;
            }
            ListSelectionModel lsm = (ListSelectionModel) e.getSource();
            int selectedRow = lsm.getMinSelectionIndex();
            TableModel tm = jTable1.getModel() ;
            txId.setText(tm.getValueAt(selectedRow,0).toString());
            txDate.setText(tm.getValueAt(selectedRow, 1).toString());
            txStart.setText(tm.getValueAt(selectedRow, 2).toString());
            txEnd.setText(tm.getValueAt(selectedRow, 3).toString());
            txSubject.setText(tm.getValueAt(selectedRow, 4).toString());
            txClient.setText(tm.getValueAt(selectedRow, 5).toString());
            txPlace.setText(tm.getValueAt(selectedRow, 6).toString());
            txEvent.setText(tm.getValueAt(selectedRow, 7).toString());
            btEdit.setEnabled(true);
            btDelete.setEnabled(true);
        }
    }

    public void jam() {
        tmjam = new Timer();
        ttjam = new TimerTask() {
            private String[] splitData;
            private String fullTime;
            private String strHour, strMinute;
            private int hour, minute;


            public void run() {
                DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss");
                Date date = new Date();
                String jam = dateFormat.format(date);
                DateFormat tgl = new SimpleDateFormat("dd/MM/yyyy");

                Date date1 = new Date();
                String tgl1 = tgl.format(date1);
                
                for (int i = 0; i < data.length; i++) {
                    splitData=data[i].split(";");
                    fullTime=splitData[2];
                    strHour=fullTime.substring(0, 2);
                    strMinute=fullTime.substring(3, 5);
                    hour=Integer.parseInt(strHour);
                    minute=Integer.parseInt(strMinute);

                    String subjam = jam.substring(0, 2);
                    int hh = Integer.parseInt(subjam);

                    subjam = jam.substring(3, 5);
                    int mm = Integer.parseInt(subjam);

                    subjam = jam.substring(6, 8);
                    int ss = Integer.parseInt(subjam);

                    if (!(hh==hour && mm==minute && ss == 0)) {
                    } else {
                        JOptionPane.showMessageDialog(null, ""+splitData[4]+" with "+splitData[5]+" at "+splitData[6]+"" );
                    }
                    
                }
                String[] dateSplit = tgl1.split("/");
                /*System.out.println(dateSplit[0]);
                System.out.println(dateSplit[1]);
                System.out.println(dateSplit[2]);*/

                label.setText(jam);
                label1.setText(tgl1);
                
            }
        };
        tmjam.schedule(ttjam, 1000,1000);
    }

    /** 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() {

        jMainForm = new javax.swing.JDesktopPane();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        panelGlassStyle4 = new usu.widget.glass.PanelGlassStyle();
        label1 = new javax.swing.JLabel();
        label = new javax.swing.JLabel();
        jScrollPane4 = new javax.swing.JScrollPane();
        taSchedule = new javax.swing.JTextArea();
        subtimer = new javax.swing.JLabel();
        btRefresh = new javax.swing.JButton();
        subtimer2 = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        label3 = new usu.widget.Label();
        jPanel2 = new javax.swing.JPanel();
        panelGlassStyle3 = new usu.widget.glass.PanelGlassStyle();
        calendarMain = new org.gui.JCalendarCombo();
        btPreview = new javax.swing.JButton();
        jScrollPane5 = new javax.swing.JScrollPane();
        taSelectedDate = new javax.swing.JTextArea();
        jLabel21 = new javax.swing.JLabel();
        label2 = new usu.widget.Label();
        jPanel3 = new javax.swing.JPanel();
        panelGlassStyle2 = new usu.widget.glass.PanelGlassStyle();
        jLabel17 = new javax.swing.JLabel();
        txStart = new javax.swing.JTextField();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        btDelete = new javax.swing.JButton();
        txClient = new javax.swing.JTextField();
        txId = new javax.swing.JTextField();
        txEnd = new javax.swing.JTextField();
        btNew = new javax.swing.JButton();
        btEdit = new javax.swing.JButton();
        txDate = new javax.swing.JTextField();
        txPlace = new javax.swing.JTextField();
        txSubject = new javax.swing.JTextField();
        txEvent = new javax.swing.JTextField();
        jLabel24 = new javax.swing.JLabel();
        jPanel4 = new javax.swing.JPanel();
        panelGlassStyle1 = new usu.widget.glass.PanelGlassStyle();
        jLabel18 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        jScrollPane6 = new javax.swing.JScrollPane();
        jTextPane1 = new javax.swing.JTextPane();
        jAddFrame = new javax.swing.JInternalFrame();
        panelGlassStyle5 = new usu.widget.glass.PanelGlassStyle();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        textSubject1 = new javax.swing.JTextField();
        textClient1 = new javax.swing.JTextField();
        textPlace1 = new javax.swing.JTextField();
        btSaveNew = new javax.swing.JButton();
        jScrollPane3 = new javax.swing.JScrollPane();
        textEvent1 = new javax.swing.JTextArea();
        btCancelNew = new javax.swing.JButton();
        jLabel16 = new javax.swing.JLabel();
        calendarAdd = new org.gui.JCalendarCombo();
        spStartAdd = new javax.swing.JSpinner();
        spEndAdd = new javax.swing.JSpinner();
        jEditFrame = new javax.swing.JInternalFrame();
        panelGlassStyle6 = new usu.widget.glass.PanelGlassStyle();
        jLabel1 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        textSubject = new javax.swing.JTextField();
        textClient = new javax.swing.JTextField();
        textPlace = new javax.swing.JTextField();
        btSaveEdit = new javax.swing.JButton();
        jScrollPane2 = new javax.swing.JScrollPane();
        textEvent = new javax.swing.JTextArea();
        btCancelEdit = new javax.swing.JButton();
        jLabel8 = new javax.swing.JLabel();
        textId = new javax.swing.JTextField();
        calendarEdit = new org.gui.JCalendarCombo();
        spStartEdit = new javax.swing.JSpinner();
        spEndEdit = new javax.swing.JSpinner();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jTabbedPane1.setVerifyInputWhenFocusTarget(false);

        panelGlassStyle4.setBackground(new java.awt.Color(255, 255, 255));

        label1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        label1.setForeground(new java.awt.Color(255, 255, 255));
        label1.setText("jLabel19");

        label.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        label.setForeground(new java.awt.Color(255, 255, 255));
        label.setText("jLabel19");

        taSchedule.setColumns(20);
        taSchedule.setEditable(false);
        taSchedule.setLineWrap(true);
        taSchedule.setRows(12);
        taSchedule.addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentShown(java.awt.event.ComponentEvent evt) {
                taScheduleComponentShown(evt);
            }
        });
        jScrollPane4.setViewportView(taSchedule);

        subtimer.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        subtimer.setForeground(new java.awt.Color(255, 255, 255));
        subtimer.setText("Date");

        btRefresh.setText("Refresh");
        btRefresh.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btRefreshActionPerformed(evt);
            }
        });

        subtimer2.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        subtimer2.setForeground(new java.awt.Color(255, 255, 255));
        subtimer2.setText("Time");

        jLabel22.setFont(new java.awt.Font("Arial", 1, 24)); // NOI18N
        jLabel22.setForeground(new java.awt.Color(255, 255, 255));
        jLabel22.setText("Today's Schedule");

        label3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/Nuvola_apps_personal.png"))); // NOI18N

        javax.swing.GroupLayout panelGlassStyle4Layout = new javax.swing.GroupLayout(panelGlassStyle4);
        panelGlassStyle4.setLayout(panelGlassStyle4Layout);
        panelGlassStyle4Layout.setHorizontalGroup(
            panelGlassStyle4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelGlassStyle4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelGlassStyle4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelGlassStyle4Layout.createSequentialGroup()
                        .addGroup(panelGlassStyle4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel22)
                            .addGroup(panelGlassStyle4Layout.createSequentialGroup()
                                .addComponent(label3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addGroup(panelGlassStyle4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(subtimer)
                                    .addComponent(subtimer2))
                                .addGap(18, 18, 18)
                                .addGroup(panelGlassStyle4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(label)
                                    .addComponent(label1))))
                        .addGap(431, 431, 431))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelGlassStyle4Layout.createSequentialGroup()
                        .addGroup(panelGlassStyle4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(btRefresh)
                            .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 613, Short.MAX_VALUE))
                        .addGap(22, 22, 22))))
        );
        panelGlassStyle4Layout.setVerticalGroup(
            panelGlassStyle4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelGlassStyle4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel22)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(panelGlassStyle4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelGlassStyle4Layout.createSequentialGroup()
                        .addGroup(panelGlassStyle4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(subtimer)
                            .addComponent(label1))
                        .addGap(18, 18, 18)
                        .addGroup(panelGlassStyle4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(subtimer2)
                            .addComponent(label)))
                    .addComponent(label3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(btRefresh)
                .addContainerGap(37, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addComponent(panelGlassStyle4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(panelGlassStyle4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab("Today's", new javax.swing.ImageIcon(getClass().getResource("/img/Glass-Art-Wall-Clock.png")), jPanel1); // NOI18N

        panelGlassStyle3.setBackground(new java.awt.Color(255, 255, 255));

        btPreview.setText("Preview");
        btPreview.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btPreviewActionPerformed(evt);
            }
        });

        taSelectedDate.setColumns(20);
        taSelectedDate.setRows(5);
        jScrollPane5.setViewportView(taSelectedDate);

        jLabel21.setFont(new java.awt.Font("Arial", 1, 36)); // NOI18N
        jLabel21.setForeground(new java.awt.Color(255, 255, 255));
        jLabel21.setText("Search ...");

        label2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/120px-Nuvola_kdict_glass.png"))); // NOI18N

        javax.swing.GroupLayout panelGlassStyle3Layout = new javax.swing.GroupLayout(panelGlassStyle3);
        panelGlassStyle3.setLayout(panelGlassStyle3Layout);
        panelGlassStyle3Layout.setHorizontalGroup(
            panelGlassStyle3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelGlassStyle3Layout.createSequentialGroup()
                .addGroup(panelGlassStyle3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelGlassStyle3Layout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addGroup(panelGlassStyle3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(panelGlassStyle3Layout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addComponent(calendarMain, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(btPreview))
                            .addGroup(panelGlassStyle3Layout.createSequentialGroup()
                                .addComponent(label2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(panelGlassStyle3Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 616, Short.MAX_VALUE)))
                .addContainerGap())
        );
        panelGlassStyle3Layout.setVerticalGroup(
            panelGlassStyle3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelGlassStyle3Layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addGroup(panelGlassStyle3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(label2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel21))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelGlassStyle3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(calendarMain, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btPreview))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 319, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addComponent(panelGlassStyle3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(panelGlassStyle3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        jTabbedPane1.addTab("Select Date", new javax.swing.ImageIcon(getClass().getResource("/img/calendar-glass.png")), jPanel2); // NOI18N

        panelGlassStyle2.setBackground(new java.awt.Color(255, 255, 255));

        jLabel17.setFont(new java.awt.Font("Tahoma", 1, 11));
        jLabel17.setForeground(new java.awt.Color(204, 0, 0));
        jLabel17.setText("Please Double Click in the table to Refresh");

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jTable1.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_ALL_COLUMNS);
        jScrollPane1.setViewportView(jTable1);

        btDelete.setText("Delete");
        btDelete.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btDeleteActionPerformed(evt);
            }
        });

        btNew.setText("New");
        btNew.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btNewActionPerformed(evt);
            }
        });

        btEdit.setText("Edit");
        btEdit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btEditActionPerformed(evt);
            }
        });

        jLabel24.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        jLabel24.setForeground(new java.awt.Color(255, 255, 255));
        jLabel24.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/home-inspection-cartoon-character-thumb4662823 medismall.png"))); // NOI18N
        jLabel24.setText("Schedule List");

        javax.swing.GroupLayout panelGlassStyle2Layout = new javax.swing.GroupLayout(panelGlassStyle2);
        panelGlassStyle2.setLayout(panelGlassStyle2Layout);
        panelGlassStyle2Layout.setHorizontalGroup(
            panelGlassStyle2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelGlassStyle2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelGlassStyle2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel24)
                    .addGroup(panelGlassStyle2Layout.createSequentialGroup()
                        .addGroup(panelGlassStyle2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(panelGlassStyle2Layout.createSequentialGroup()
                                .addComponent(txId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 268, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(panelGlassStyle2Layout.createSequentialGroup()
                                .addComponent(txDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(txStart, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(txEnd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(txSubject, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(txClient, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(txPlace, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(txEvent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 71, Short.MAX_VALUE)
                        .addComponent(btNew, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(10, 10, 10)
                        .addComponent(btDelete, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(21, Short.MAX_VALUE))
                    .addGroup(panelGlassStyle2Layout.createSequentialGroup()
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 609, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(16, Short.MAX_VALUE))))
        );
        panelGlassStyle2Layout.setVerticalGroup(
            panelGlassStyle2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelGlassStyle2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel24)
                .addGap(13, 13, 13)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 276, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(panelGlassStyle2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelGlassStyle2Layout.createSequentialGroup()
                        .addGroup(panelGlassStyle2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel17))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(panelGlassStyle2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txStart, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txEnd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txSubject, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txClient, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txPlace, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txEvent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(11, 11, 11))
                    .addGroup(panelGlassStyle2Layout.createSequentialGroup()
                        .addGroup(panelGlassStyle2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(btNew, javax.swing.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE)
                            .addComponent(btEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btDelete, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addContainerGap())))
        );

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(panelGlassStyle2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(panelGlassStyle2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        jTabbedPane1.addTab("Schedule List", new javax.swing.ImageIcon(getClass().getResource("/img/schedule-book.png")), jPanel3); // NOI18N

        panelGlassStyle1.setBackground(new java.awt.Color(255, 255, 255));

        jLabel18.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        jLabel18.setForeground(new java.awt.Color(255, 255, 255));
        jLabel18.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/home-inspection-cartoon-character-thumb4662823 small.png"))); // NOI18N
        jLabel18.setText("Schedule Manager");

        jLabel19.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel19.setText("Vocational High School 4 Malang");

        jTextPane1.setBackground(new java.awt.Color(219, 217, 217));
        jTextPane1.setFont(new java.awt.Font("Arial", 1, 13)); // NOI18N
        jTextPane1.setText("This application is an application that make it easier for the user to save the schedule \nand make it easier for all users to set the schedule-a schedule. This application can \nbe used as the Schedule Manager Application. Users can view the schedule according \nto the date specified in the previous. ");
        jScrollPane6.setViewportView(jTextPane1);

        javax.swing.GroupLayout panelGlassStyle1Layout = new javax.swing.GroupLayout(panelGlassStyle1);
        panelGlassStyle1.setLayout(panelGlassStyle1Layout);
        panelGlassStyle1Layout.setHorizontalGroup(
            panelGlassStyle1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelGlassStyle1Layout.createSequentialGroup()
                .addGroup(panelGlassStyle1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelGlassStyle1Layout.createSequentialGroup()
                        .addGap(369, 369, 369)
                        .addComponent(jLabel19))
                    .addGroup(panelGlassStyle1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel18))
                    .addGroup(panelGlassStyle1Layout.createSequentialGroup()
                        .addGap(28, 28, 28)
                        .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 575, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(32, Short.MAX_VALUE))
        );
        panelGlassStyle1Layout.setVerticalGroup(
            panelGlassStyle1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelGlassStyle1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel18)
                .addGap(39, 39, 39)
                .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 34, Short.MAX_VALUE)
                .addComponent(jLabel19)
                .addGap(25, 25, 25))
        );

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(panelGlassStyle1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(panelGlassStyle1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        jTabbedPane1.addTab("About", new javax.swing.ImageIcon(getClass().getResource("/img/Crystal_Clear_filesystem_folder_homesmall.png")), jPanel4); // NOI18N

        jTabbedPane1.setBounds(0, 0, 640, 490);
        jMainForm.add(jTabbedPane1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jAddFrame.setTitle("Add Schedule");
        jAddFrame.setVisible(true);

        panelGlassStyle5.setBackground(new java.awt.Color(255, 255, 255));

        jLabel9.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel9.setForeground(new java.awt.Color(255, 255, 255));
        jLabel9.setText("Subject");

        jLabel10.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel10.setForeground(new java.awt.Color(255, 255, 255));
        jLabel10.setText("Client");

        jLabel11.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel11.setForeground(new java.awt.Color(255, 255, 255));
        jLabel11.setText("Place");

        jLabel12.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel12.setForeground(new java.awt.Color(255, 255, 255));
        jLabel12.setText("End");

        jLabel13.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel13.setForeground(new java.awt.Color(255, 255, 255));
        jLabel13.setText("Date");

        jLabel14.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel14.setForeground(new java.awt.Color(255, 255, 255));
        jLabel14.setText("Start");

        jLabel15.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel15.setForeground(new java.awt.Color(255, 255, 255));
        jLabel15.setText("Event");

        textSubject1.setFont(new java.awt.Font("Tahoma", 0, 12));

        textClient1.setFont(new java.awt.Font("Tahoma", 0, 12));

        textPlace1.setFont(new java.awt.Font("Tahoma", 0, 12));

        btSaveNew.setText("Save");
        btSaveNew.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btSaveNewActionPerformed(evt);
            }
        });

        textEvent1.setColumns(20);
        textEvent1.setRows(5);
        jScrollPane3.setViewportView(textEvent1);

        btCancelNew.setText("Cancel");
        btCancelNew.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btCancelNewActionPerformed(evt);
            }
        });

        jLabel16.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel16.setForeground(new java.awt.Color(255, 255, 255));
        jLabel16.setText("ADD SCHEDULE");

        spStartAdd.setModel(new javax.swing.SpinnerDateModel());
        spStartAdd.setEditor(new javax.swing.JSpinner.DateEditor(spStartAdd, "hh:mm a"));

        spEndAdd.setModel(new javax.swing.SpinnerDateModel());
        spEndAdd.setEditor(new javax.swing.JSpinner.DateEditor(spEndAdd, "hh:mm a"));

        javax.swing.GroupLayout panelGlassStyle5Layout = new javax.swing.GroupLayout(panelGlassStyle5);
        panelGlassStyle5.setLayout(panelGlassStyle5Layout);
        panelGlassStyle5Layout.setHorizontalGroup(
            panelGlassStyle5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelGlassStyle5Layout.createSequentialGroup()
                .addGroup(panelGlassStyle5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelGlassStyle5Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(panelGlassStyle5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel9)
                            .addComponent(jLabel10)
                            .addComponent(jLabel11)
                            .addComponent(jLabel12)
                            .addComponent(jLabel13)
                            .addComponent(jLabel14)
                            .addComponent(jLabel15))
                        .addGap(22, 22, 22)
                        .addGroup(panelGlassStyle5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(panelGlassStyle5Layout.createSequentialGroup()
                                .addGap(122, 122, 122)
                                .addComponent(btSaveNew, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(btCancelNew, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(calendarAdd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(spStartAdd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(spEndAdd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(panelGlassStyle5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(textPlace1, javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(textClient1, javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(textSubject1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 175, Short.MAX_VALUE))
                            .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(panelGlassStyle5Layout.createSequentialGroup()
                        .addGap(122, 122, 122)
                        .addComponent(jLabel16)))
                .addContainerGap(18, Short.MAX_VALUE))
        );
        panelGlassStyle5Layout.setVerticalGroup(
            panelGlassStyle5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelGlassStyle5Layout.createSequentialGroup()
                .addContainerGap(100, Short.MAX_VALUE)
                .addComponent(jLabel16)
                .addGap(18, 18, 18)
                .addGroup(panelGlassStyle5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel13)
                    .addComponent(calendarAdd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelGlassStyle5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel14)
                    .addComponent(spStartAdd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(13, 13, 13)
                .addGroup(panelGlassStyle5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel12)
                    .addComponent(spEndAdd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(17, 17, 17)
                .addGroup(panelGlassStyle5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel9)
                    .addComponent(textSubject1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelGlassStyle5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel10)
                    .addComponent(textClient1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelGlassStyle5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel11)
                    .addComponent(textPlace1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelGlassStyle5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelGlassStyle5Layout.createSequentialGroup()
                        .addGap(6, 6, 6)
                        .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addGroup(panelGlassStyle5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(btCancelNew, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(btSaveNew, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(panelGlassStyle5Layout.createSequentialGroup()
                        .addGap(37, 37, 37)
                        .addComponent(jLabel15)))
                .addContainerGap())
        );

        javax.swing.GroupLayout jAddFrameLayout = new javax.swing.GroupLayout(jAddFrame.getContentPane());
        jAddFrame.getContentPane().setLayout(jAddFrameLayout);
        jAddFrameLayout.setHorizontalGroup(
            jAddFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(panelGlassStyle5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        jAddFrameLayout.setVerticalGroup(
            jAddFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(panelGlassStyle5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        jAddFrame.setBounds(0, 0, 410, 513);
        jMainForm.add(jAddFrame, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jEditFrame.setTitle("Edit Schedule");
        jEditFrame.setVisible(true);

        panelGlassStyle6.setBackground(new java.awt.Color(255, 255, 255));

        jLabel1.setForeground(new java.awt.Color(255, 255, 255));
        jLabel1.setText("Date");

        jLabel5.setForeground(new java.awt.Color(255, 255, 255));
        jLabel5.setText("Event");

        jLabel2.setForeground(new java.awt.Color(255, 255, 255));
        jLabel2.setText("Start");

        jLabel3.setForeground(new java.awt.Color(255, 255, 255));
        jLabel3.setText("Subject");

        jLabel7.setForeground(new java.awt.Color(255, 255, 255));
        jLabel7.setText("Client");

        jLabel4.setForeground(new java.awt.Color(255, 255, 255));
        jLabel4.setText("Place");

        jLabel6.setForeground(new java.awt.Color(255, 255, 255));
        jLabel6.setText("End");

        textSubject.setFont(new java.awt.Font("Tahoma", 0, 12));

        textClient.setFont(new java.awt.Font("Tahoma", 0, 12));

        textPlace.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        btSaveEdit.setText("Save");
        btSaveEdit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btSaveEditActionPerformed(evt);
            }
        });

        textEvent.setColumns(20);
        textEvent.setRows(5);
        jScrollPane2.setViewportView(textEvent);

        btCancelEdit.setText("Cancel");
        btCancelEdit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btCancelEditActionPerformed(evt);
            }
        });

        jLabel8.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel8.setForeground(new java.awt.Color(255, 255, 255));
        jLabel8.setText("EDIT SCHEDULE");

        spStartEdit.setModel(new javax.swing.SpinnerDateModel());
        spStartEdit.setEditor(new javax.swing.JSpinner.DateEditor(spStartEdit, "hh:mm a"));

        spEndEdit.setModel(new javax.swing.SpinnerDateModel());
        spEndEdit.setEditor(new javax.swing.JSpinner.DateEditor(spEndEdit, "hh:mm a"));

        javax.swing.GroupLayout panelGlassStyle6Layout = new javax.swing.GroupLayout(panelGlassStyle6);
        panelGlassStyle6.setLayout(panelGlassStyle6Layout);
        panelGlassStyle6Layout.setHorizontalGroup(
            panelGlassStyle6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelGlassStyle6Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(panelGlassStyle6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelGlassStyle6Layout.createSequentialGroup()
                        .addGroup(panelGlassStyle6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(panelGlassStyle6Layout.createSequentialGroup()
                                .addGroup(panelGlassStyle6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel1)
                                    .addComponent(jLabel2))
                                .addGap(34, 34, 34)
                                .addGroup(panelGlassStyle6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(spStartEdit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(calendarEdit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(panelGlassStyle6Layout.createSequentialGroup()
                                .addGroup(panelGlassStyle6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel5)
                                    .addComponent(jLabel3)
                                    .addComponent(jLabel7)
                                    .addComponent(jLabel4)
                                    .addComponent(jLabel6))
                                .addGap(22, 22, 22)
                                .addGroup(panelGlassStyle6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(spEndEdit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(panelGlassStyle6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                        .addComponent(textSubject, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 178, Short.MAX_VALUE)
                                        .addComponent(textClient, javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(textPlace, javax.swing.GroupLayout.Alignment.LEADING))
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelGlassStyle6Layout.createSequentialGroup()
                                        .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 255, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(29, 29, 29)))))
                        .addGap(56, 56, 56))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelGlassStyle6Layout.createSequentialGroup()
                        .addComponent(textId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel8)
                        .addGap(124, 124, 124))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelGlassStyle6Layout.createSequentialGroup()
                        .addComponent(btSaveEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btCancelEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(28, 28, 28))))
        );
        panelGlassStyle6Layout.setVerticalGroup(
            panelGlassStyle6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelGlassStyle6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelGlassStyle6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(textId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel8))
                .addGap(29, 29, 29)
                .addGroup(panelGlassStyle6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(calendarEdit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel1))
                .addGap(5, 5, 5)
                .addGroup(panelGlassStyle6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(spStartEdit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel2))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelGlassStyle6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(spEndEdit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel6))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelGlassStyle6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(textSubject, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel3))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelGlassStyle6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(textClient, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel7))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelGlassStyle6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel4)
                    .addComponent(textPlace, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelGlassStyle6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelGlassStyle6Layout.createSequentialGroup()
                        .addGap(54, 54, 54)
                        .addComponent(jLabel5))
                    .addGroup(panelGlassStyle6Layout.createSequentialGroup()
                        .addGap(6, 6, 6)
                        .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(18, 18, 18)
                .addGroup(panelGlassStyle6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btCancelEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btSaveEdit, javax.swing.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE))
                .addGap(97, 97, 97))
        );

        javax.swing.GroupLayout jEditFrameLayout = new javax.swing.GroupLayout(jEditFrame.getContentPane());
        jEditFrame.getContentPane().setLayout(jEditFrameLayout);
        jEditFrameLayout.setHorizontalGroup(
            jEditFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(panelGlassStyle6, javax.swing.GroupLayout.DEFAULT_SIZE, 397, Short.MAX_VALUE)
        );
        jEditFrameLayout.setVerticalGroup(
            jEditFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(panelGlassStyle6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        jEditFrame.setBounds(0, 0, 407, 504);
        jMainForm.add(jEditFrame, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jMainForm, javax.swing.GroupLayout.PREFERRED_SIZE, 640, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jMainForm, javax.swing.GroupLayout.PREFERRED_SIZE, 488, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

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

    private void btNewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btNewActionPerformed
        jAddFrame.setVisible(true);
        btNew.setEnabled(false);
}//GEN-LAST:event_btNewActionPerformed

    private void btEditActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btEditActionPerformed
        String[] strdate;
        String[] timeStart;
        String[] timeEnd;
        int[] dt = null;
        jEditFrame.setVisible(true);
        btEdit.setEnabled(false);
        textId.setText(txId.getText());
        String dateFull=(txDate.getText());
        strdate=dateFull.split("/");
        int year=Integer.parseInt(strdate[2]);
        int month=Integer.parseInt(strdate[1]);
        int date=Integer.parseInt(strdate[0]);
        calendarEdit.setSelectedDate(year, month, date);
        timeStart=txStart.getText().split(":");
        int hourStart=Integer.parseInt(timeStart[0]);
        int minuteStart=Integer.parseInt(timeStart[1]);
        //spStartEdit.setValue(hourStart);
        //spEndEdit.setValue(txEnd.getText());
        textSubject.setText(txSubject.getText());
        textClient.setText(txClient.getText());
        textPlace.setText(txPlace.getText());
        textEvent.setText(txEvent.getText());
}//GEN-LAST:event_btEditActionPerformed

    private void btDeleteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btDeleteActionPerformed
        int pilihan = JOptionPane.showConfirmDialog(null, "Are You sure to delete this schedule?", "Confirmation", JOptionPane.YES_NO_OPTION);
        if (pilihan==0){
            getFile.removeLineFromFile(txId.getText());
            jTable1.setModel(new TestTable1());
            this.jTable1=new JTable(this.jTable1.getModel());
            this.jTable1.repaint();
        }
            jTable1.setModel(new TestTable1());
            this.jTable1=new JTable(this.jTable1.getModel());
            this.jTable1.repaint();

}//GEN-LAST:event_btDeleteActionPerformed

    private void taScheduleComponentShown(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_taScheduleComponentShown
        // TODO add your handling code here:        
    }//GEN-LAST:event_taScheduleComponentShown

    private void btRefreshActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btRefreshActionPerformed
        // TODO add your handling code here:
        String dt= calendarEdit.getSelectedDate();
        try {
            data = new String[getFile.countLinebyDate(dt)];
            data=getFile.searchFilebyDate(dt);
            fullData = "";
            for (int i = 0; i < data.length; i++) {
                det=data[i].split(";");
                fullData+=det[2]+" - "+det[3]+System.getProperty("line.separator")+"Subject : "+det[4]+System.getProperty("line.separator")+"Client : "+det[5]+System.getProperty("line.separator")+"Place : "+det[6]+System.getProperty("line.separator")+"-------------------------------------------------------------------------------------------------------------------------------------------------------"+System.getProperty("line.separator");
            }
            taSchedule.setText(fullData);
        } catch (FileNotFoundException ex) {
            Logger.getLogger(mainForm.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(mainForm.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_btRefreshActionPerformed

    private void btSaveNewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btSaveNewActionPerformed
        Object stt = spStartAdd.getValue();
        Object en = spEndAdd.getValue();

        String date = calendarAdd.getSelectedDate();
        String subStart = String.valueOf(stt);
        String start = subStart.substring(11, 16);
        String subEnd = String.valueOf(en);
        String end = subEnd.substring(11, 16);
        String subject = textSubject1.getText();
        String client = textClient1.getText();
        String place = textPlace1.getText();
        String event = textEvent1.getText();
        try {
            getFile.appendFile(date, start, end, subject, client, place, event);
            jTable1.setModel(new TestTable1());
            this.jTable1=new JTable(this.jTable1.getModel());
            this.jTable1.repaint();
        } catch (IOException ex) {
            Logger.getLogger(mainForm.class.getName()).log(Level.SEVERE, null, ex);
        }

        textSubject1.setText("");
        textClient1.setText("");
        textPlace1.setText("");
        textEvent1.setText("");
        jAddFrame.setVisible(false);
        btNew.setEnabled(true);

        jAddFrame.setVisible(false);
        btNew.setEnabled(true);
}//GEN-LAST:event_btSaveNewActionPerformed

    private void btCancelNewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btCancelNewActionPerformed
        textSubject1.setText("");
        textClient1.setText("");
        textPlace1.setText("");
        textEvent1.setText("");
        jAddFrame.setVisible(false);
        btNew.setEnabled(true);
        //textSubject.setFocusable(true);
}//GEN-LAST:event_btCancelNewActionPerformed

    private void btSaveEditActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btSaveEditActionPerformed
        Object stt= spStartEdit.getValue();
        Object en= spEndEdit.getValue();

        String id=textId.getText();
        String date= calendarEdit.getSelectedDate();
        String subStart = String.valueOf(stt);
        String start = subStart.substring(11, 16);
        String subEnd = String.valueOf(en);
        String end = subEnd.substring(11, 16);
        String subject = textSubject.getText();
        String client = textClient.getText();
        String place = textPlace.getText();
        String event = textEvent.getText();

        getFile.removeLineFromFile(id);
        try {
            getFile.updateFile(id, date, start, end, subject, client, place, event);
        } catch (IOException ex) {
            Logger.getLogger(mainForm.class.getName()).log(Level.SEVERE, null, ex);
        }

        jEditFrame.setVisible(false);
        btEdit.setEnabled(true);
}//GEN-LAST:event_btSaveEditActionPerformed

    private void btCancelEditActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btCancelEditActionPerformed
        textSubject.setText("");
        textClient.setText("");
        textPlace.setText("");
        textEvent.setText("");
        btEdit.setEnabled(true);
        jEditFrame.setVisible(false);
}//GEN-LAST:event_btCancelEditActionPerformed

    private void btPreviewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btPreviewActionPerformed
        // TODO add your handling code here:
        String dt= calendarMain.getSelectedDate();
        try {
            data = new String[getFile.countLinebyDate(dt)];
            data=getFile.searchFilebyDate(dt);
            fullData = "";
            for (int i = 0; i < data.length; i++) {
                det=data[i].split(";");
                fullData+=det[2]+" - "+det[3]+System.getProperty("line.separator")+"Subject : "+det[4]+System.getProperty("line.separator")+"Client : "+det[5]+System.getProperty("line.separator")+"Place : "+det[6]+System.getProperty("line.separator")+"---------------------------------------------------------"+System.getProperty("line.separator");
            }
            taSelectedDate.setText(fullData);
        } catch (FileNotFoundException ex) {
            Logger.getLogger(mainForm.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(mainForm.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_btPreviewActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new mainForm().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btCancelEdit;
    private javax.swing.JButton btCancelNew;
    private javax.swing.JButton btDelete;
    private javax.swing.JButton btEdit;
    private javax.swing.JButton btNew;
    private javax.swing.JButton btPreview;
    private javax.swing.JButton btRefresh;
    private javax.swing.JButton btSaveEdit;
    private javax.swing.JButton btSaveNew;
    private org.gui.JCalendarCombo calendarAdd;
    private org.gui.JCalendarCombo calendarEdit;
    private org.gui.JCalendarCombo calendarMain;
    private javax.swing.JInternalFrame jAddFrame;
    private javax.swing.JInternalFrame jEditFrame;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel24;
    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.JDesktopPane jMainForm;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTable jTable1;
    private javax.swing.JTextPane jTextPane1;
    private javax.swing.JLabel label;
    private javax.swing.JLabel label1;
    private usu.widget.Label label2;
    private usu.widget.Label label3;
    private usu.widget.glass.PanelGlassStyle panelGlassStyle1;
    private usu.widget.glass.PanelGlassStyle panelGlassStyle2;
    private usu.widget.glass.PanelGlassStyle panelGlassStyle3;
    private usu.widget.glass.PanelGlassStyle panelGlassStyle4;
    private usu.widget.glass.PanelGlassStyle panelGlassStyle5;
    private usu.widget.glass.PanelGlassStyle panelGlassStyle6;
    private javax.swing.JSpinner spEndAdd;
    private javax.swing.JSpinner spEndEdit;
    private javax.swing.JSpinner spStartAdd;
    private javax.swing.JSpinner spStartEdit;
    private javax.swing.JLabel subtimer;
    private javax.swing.JLabel subtimer2;
    private javax.swing.JTextArea taSchedule;
    private javax.swing.JTextArea taSelectedDate;
    private javax.swing.JTextField textClient;
    private javax.swing.JTextField textClient1;
    private javax.swing.JTextArea textEvent;
    private javax.swing.JTextArea textEvent1;
    private javax.swing.JTextField textId;
    private javax.swing.JTextField textPlace;
    private javax.swing.JTextField textPlace1;
    private javax.swing.JTextField textSubject;
    private javax.swing.JTextField textSubject1;
    private javax.swing.JTextField txClient;
    private javax.swing.JTextField txDate;
    private javax.swing.JTextField txEnd;
    private javax.swing.JTextField txEvent;
    private javax.swing.JTextField txId;
    private javax.swing.JTextField txPlace;
    private javax.swing.JTextField txStart;
    private javax.swing.JTextField txSubject;
    // End of variables declaration//GEN-END:variables

}
