This tutorial will teach you how to make a Cake Shop Inventory Management System in Java step by step. This system will helpful you to learn Inventory Management System.
int sum = 0; if(chkCho.isSelected()) { String cho = "Chocolate cake"; int price = 1000; int qty = Integer.parseInt(txtCqty.getText()); int tot = price * qty; model = (DefaultTableModel)jTable1.getModel(); model.addRow(new Object[] { cho, price, qty, tot } ); } if(chkRed.isSelected()) { String crispy = "Red velvet cake"; int price = 1200; int qty = Integer.parseInt(txtRqty.getText()); int tot = price * qty; model = (DefaultTableModel)jTable1.getModel(); model.addRow(new Object[] { crispy, price, qty, tot } ); } if(chkCup.isSelected()) { String hotdeal = "Cupcake"; int price = 500; int qty = Integer.parseInt(txtCupqty.getText()); int tot = price * qty; model = (DefaultTableModel)jTable1.getModel(); model.addRow(new Object[] { hotdeal, price, qty, tot } ); } for(int i=0; i<jTable1.getRowCount(); i++) { sum = sum + Integer.parseInt(jTable1.getValueAt(i, 3).toString()); } txtbill.setText(Integer.toString(sum));
In this tutorial will teach Laravel 11 CRUD Application step by step. Laravel 11 CRUD…
in this tutorials we will be talk about how to make a times table in…
In this tutorials will teach How to add two numbers in Laravel 10. (more…)
In this tutorial, we will teach the process of building a full-stack application using Node.js,…
In this tutorial, we will explin you through the process of building a Hospital Management…
Inheritance in JavaScript using classes. You have a Person class as the superclass, an Employee…