private void newBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_newBtnActionPerformed

        if (tabbedPane.getSelectedIndex() == 1) {
            if (!DayFrame.isInstanceAlive()) {
                new DayFrame(this, c, NIL);
            }
        } else if (tabbedPane.getSelectedIndex() == 2) {
        } else if (tabbedPane.getSelectedIndex() == 3) {
            if (!ContactFrame.isInstanceAlive()) {
                new ContactFrame(this, c, NIL);
            }
        } else if (tabbedPane.getSelectedIndex() == 4) {
            if (!TagFrame.isInstanceAlive()) {
                new TagFrame(this, c, NIL);
            }
        } else if (tabbedPane.getSelectedIndex() == 5) {
            if (!CategoryFrame.isInstanceAlive()) {
                new CategoryFrame(this, c, NIL);
            }
        }

    }//GEN-LAST:event_newBtnActionPerformed