private void cmdKeluarActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
//System.exit(0);
dispose();
}
private void cmdBatalActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
aktif(false);
setTombol(true);
}
private void cmbKd_BrgActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
detail_barang(cmbKd_Brg.getSelectedItem().toString());
}
private void txtJmlActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
hitung_jual();
simpan_ditabel();
}
private void cmdSimpanActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
simpan_transaksi();
JOptionPane.showMessageDialog(null, "Data Berhasil disimpan");
aktif(false);
setTombol(true);
}
private void cmdHapusItemActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
int row=tblJual.getSelectedRow();
((DefaultTableModel) tblJual.getModel()).removeRow(row);
}
Semoga bermanfaat, dan klo masih ada yang perlu ditanyakan silahkan iso komentar.
Mas, class KoneksiMysqlnya kok gak ada? dan method untuk mengurangi jumlah stok di tabel barang juga gak ada?
ReplyDelete