private void jmi_close_conectionActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_jmi_close_conectionActionPerformed
    {//GEN-HEADEREND:event_jmi_close_conectionActionPerformed

        Object[] options =
        {
            "Da",
            "Ne"
        };
        int n = JOptionPane.showOptionDialog(this,
                "Da li ste sigurni da zelite da ugasite konekciju?",
                "Potvrda",
                JOptionPane.YES_NO_CANCEL_OPTION,
                JOptionPane.QUESTION_MESSAGE,
                null,
                options,
                options[1]);

        if (mysql_connection != null && n == 0)
        {
            mysql_connection.disconnect();
            jmi_otvori_konekciju.setEnabled(true);
            jmi_close_conection.setEnabled(false);
            jp_holder.removeAll();
            jp_holder.revalidate();
            clear_tree();
            this.revalidate();
            this.repaint();
            mysql_connection = null;

        }

    }//GEN-LAST:event_jmi_close_conectionActionPerformed