Home Java Employee Salary Calculation using Java Swing

Employee Salary Calculation using Java Swing

1 min read

This tutorial will teach you  to calculating the employee salary calculation using java .This type of projects java is so imponent those who want to be good java developer. You must get java project ideas here.

Features of the Project

Input the employee name and the basic salary calculate and display the netsalary using following condition

  • if the basic salary is more than 50000 then include 10% tax.
  • if the basic salary is more than 30000 then include 5% tax.
  • otherwise no tax.

Paste the code inside the ok button

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) 
        double salary,tax,netsal;   
        salary = Double.parseDouble(txtsal.getText());        
        if(salary > 50000)
           tax =  salary * 10/100;
        else if(salary > 35000)
             tax =  salary * 5/100;
            tax =  0;
        netsal = salary - tax;      

Paste the code inside the Clear button


Paste the code inside the Exit button


i have attached the video link below. which will do this tutorials step by step.



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

Build a Full-Stack Node.js MongoDB CRUD App with JWT Authentication

In this tutorial, we will teach the process of building a full-stack application using Nod…