private void jmi_otvori_konekcijuActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_jmi_otvori_konekcijuActionPerformed
    {//GEN-HEADEREND:event_jmi_otvori_konekcijuActionPerformed
        OpenConnection jdialog = new OpenConnection();
        Point position = get_center(jdialog.getWidth(), jdialog.getHeight(), false);
        jdialog.setLocation(position);
        jdialog.setVisible(true);

        if (jdialog.isconnect())
        {
            setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));


            mysql_connection = jdialog.getMysql_connection();
            sql_exe = new SqlExecution();
            sql_exe.setConnection(mysql_connection);
            jp_holder.setLayout(new java.awt.BorderLayout());
            jp_holder.add(sql_exe, BorderLayout.CENTER);
            jp_holder.revalidate();
            jmi_otvori_konekciju.setEnabled(false);
            jmi_close_conection.setEnabled(true);

            set_data_tree();
            jpm_tree_menue.setEnabled(true);
            setCursor(Cursor.getDefaultCursor());
        }
    }//GEN-LAST:event_jmi_otvori_konekcijuActionPerformed