private void tblmakananMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tblmakananMouseClicked
        if(evt.getClickCount()==1){
            int row = tblmakanan.getSelectedRow();
            int jenis;
            if (tblModel.getValueAt(row, 1).toString() == "Makanan"){
                jenis = 0;
            } else {
                jenis = 1;
            }
                
            nama.setText(tblModel.getValueAt(row, 0).toString());
            kategori.setSelectedIndex(jenis);
            harga.setText(tblModel.getValueAt(row, 2).toString());
        }
    }//GEN-LAST:event_tblmakananMouseClicked