This tutorial will teach you Sales Tax Calculation Java.



paste this code inside the ok button
double taxprice = Integer.parseInt(txttprice.getText());
double trate = Integer.parseInt(txttrate.getText());
double tot = trate/100 * taxprice + taxprice;
txtatp.setText(String.valueOf(tot));i have attached the video link below. which will do this tutorials step by step.