public void init(Bilgisayar b){
        lblMasaAdi.setText(b.getMasaAdi());
        pnlSureEkle.setVisible(false);
        if(b.getAcilisSaati()!=null){
            if(b.getSureSiniri()!=0){             
                lblKalanSure.setText(Long.toString(b.getSureSiniri() - b.gecenDakikaHesapla())+" dk");
                pnlSureEkle.setVisible(true);
            }else{
                lblKalanSure.setText("-");
            }
            prgGecenSure.setValue(b.gecenOranHesapla());
            lblGecenSure.setText(b.gecenDakikaHesapla()+" dk");
            lblAcilisSaati.setText(b.acilisZamaniString());
            lblKullanimUcreti.setText(Float.toString(b.kullanimTutariHesapla())+" TL");
            lblAdisyonTutar.setText(Float.toString(b.adisyonTutariHesapla())+" TL");
            lblToplamTutar.setText((b.adisyonTutariHesapla()+b.kullanimTutariHesapla())+" TL");
        }else{
            lblGecenSure.setText("Kapalı");
            lblKalanSure.setText("-");
            lblAcilisSaati.setText("Kapalı");
            lblKullanimUcreti.setText("-"); 
            lblAdisyonTutar.setText("-");
            lblToplamTutar.setText("-");
            prgGecenSure.setValue(0);
           
        }
        lblKullanici.setText("Kayıtlı Değil");
        if(b.getMusteri() != null)
            lblKullanici.setText(b.getMusteri().getAd());
    }