CODING OF SUBTRACT BUTTON(jButton1)
{
int num1,num2,mul;
num1=Integer.parseInt(jTextField1.getText());
num2=Integer.parseInt(jTextField2.getText());
mul=num1*num2;
jTextField3.setText(" "+mul);
}
CODING OF CLEAR BUTTON(jButton2)
{
jTextField1.setText(" ");
jTextField2.setText(" ");
jTextField3.setText(" ");
}
CODING OF EXIT BUTTON(jButton3)
{
System.exit(0);
}
{
int num1,num2,mul;
num1=Integer.parseInt(jTextField1.getText());
num2=Integer.parseInt(jTextField2.getText());
mul=num1*num2;
jTextField3.setText(" "+mul);
}
CODING OF CLEAR BUTTON(jButton2)
{
jTextField1.setText(" ");
jTextField2.setText(" ");
jTextField3.setText(" ");
}
CODING OF EXIT BUTTON(jButton3)
{
System.exit(0);
}
CODING |
RUNNING |
We have used NetBeans IDE 7.2.1. To download it visit www.netbeans.org
For any query or suggestion please comment below...
Great work. I didn't even thought I will get the program in this format. I mean in the form of an application.
ReplyDeleteRead this : Short article on how to learn java programming Java programming tutorial