Home Java Cash Issue System using Java

Cash Issue System using Java

1 min read
0
0
747

This tutorial will teach you how to make a Cash Issue System using Java Step by Step.

First Select the textfield right click-> AddEvent Handler-> key-> keyRelased

public void keyReleased(KeyEvent e) 
{			
    double a = Double.parseDouble(txt1000.getText()) * 1000;	
    txttot1000.setText(String.valueOf(a));				
}

Do each textfield same thing like above.

After that Paste the Code inside the ok button.inorder to calculate and get total amount.

double tot = Double.parseDouble(txttot1000.getText()) + Double.parseDouble(txttot500.getText()) 
+ Double.parseDouble(txttot200.getText()) + Double.parseDouble(txttot100.getText()) + 
Double.parseDouble(txttot50.getText()) + Double.parseDouble(txttot20.getText()) +
Double.parseDouble(txttot2.getText()) + Double.parseDouble(txttot5.getText())  ;                        
txtsum.setText(String.valueOf(tot));

 

Load More Related Articles
Load More By admin
Load More In Java

Leave a Reply

Your email address will not be published. Required fields are marked *

Check Also

Creating a Calculator in WPF with C# – Step-by-Step Tutorial

In this tutorials will teach how to make a calculator using wpf C# application step by ste…