public boolean baca(String no_beli){
	boolean adaKesalahan = false;	
	Connection cn = null; 
        
	this.no_beli = no_beli;
	listKwitansi = null;
	
	try{ 
            Class.forName(Koneksi.driver); 
	} catch (Exception ex){ 
            adaKesalahan = true; 
            JOptionPane.showMessageDialog(null,"JDBC Driver tidak ditemukan atau rusak\n"+ex,"Kesalahan",JOptionPane.ERROR_MESSAGE);  
	} 
	
	if (!adaKesalahan){ 
            try { 
                cn = DriverManager.getConnection(Koneksi.database+"?user="+ Koneksi.user+"&password="+Koneksi.password+""); 
            } catch (Exception ex) { 
                adaKesalahan = true;  
                JOptionPane.showMessageDialog(null,"Koneksi ke "+Koneksi.database+" gagal\n"+ex,"Kesalahan",JOptionPane.ERROR_MESSAGE); 
            } 
            
            if (!adaKesalahan){ 
                String SQLStatemen;
                Statement sta;
                ResultSet rset;
                
                try { 
                    SQLStatemen = "select * from kwitansi where no_beli='"+no_beli+"'"; 
                    sta = cn.createStatement(); 
                    rset = sta.executeQuery(SQLStatemen);                    
                    
                    rset.next(); 
                    rset.last();
                    listKwitansi = new Object[rset.getRow()][4];
                    
                    rset.first();
                    int i=0;
                    do { 
                        if (!rset.getString("kode_buku").equals("")){
                            listKwitansi[i] = new Object[]{ rset.getString("kode_buku"), rset.getInt("jumlah"), rset.getInt("harga")}; 		    
                        }
                        i++;
                    } while (rset.next());
                    
                    sta.close(); 
                    rset.close(); 
                    
                    if (listKwitansi.length>0) {
                        adaKesalahan = false;
                    }
                } catch (Exception ex){
                    adaKesalahan = true;
                }
            }
        }
        return !adaKesalahan;
    }