Java NetBeans GUI application to calculate salary of employee.

Q6. Design a Java NetBeans GUI application to calculate salary of employee.

Sol:

Create a GUI application as per following screenshot.

Type the following code by double clicking BtnCal, button, below the line that says, ‘// TODO add your handling code here’

 

double sal,da,ta,hra,cca;

sal=Double.parseDouble(txtsal.getText()); Read More …