< ;
Breaking News
Loading...

Saturday, June 22, 2019

how to make wages calculator in java using netbeans

       
                   Wages calculator
gui...
On the click of calculate
double amt = 0;
 int days =Integer.parseInt(jTextField1.getText());
 if (jRadioButton1.isSelected())
 amt=100*days;
if (jRadioButton2.isSelected())
 amt=150*days;
jTextField2.setText(" "+amt);


on the click of clear
jTextField1.setText(null );
jTextField2.setText(null );

ON THE CLICK OF EXIT
System.exit(0); 

output..



No comments:

Post a Comment