private void JalurTerpilih(){
        Koneksi conn = new Koneksi();
        try {
            ResultSet qhasil = conn.getStatement().executeQuery("SELECT * FROM hasil ORDER BY f_nomor ASC");
            int tot=0;
            while (qhasil.next()){
                as=qhasil.getInt("f_asal_h");
                tu=qhasil.getInt("f_tujuan_h");
                Cij= C(as,tu);
                if (Cij==0){ Cij=C(tu, as); }

                tot += Cij;

                if(qhasil.getInt("f_nomor")==1){
                    jTextArea2.append(qhasil.getInt("f_asal_h")+","+qhasil.getInt("f_tujuan_h"));
                } else {
                    jTextArea2.append("~~>"+qhasil.getInt("f_asal_h")+","+qhasil.getInt("f_tujuan_h"));
                }
            }
            float kilo= (float) tot/1000;
            jTextArea2.append("\nTotal Jarak : "+tot+" meter = "+kilo+" kilometer" );
        } catch (SQLException ex) {}
    }