title: multiplying decimal numbers in java
body: <p>I have the following code which works when I am multiplying whole numbers however when I try to multiply decimal numbers and display the answer as a decimal number I am getting an error</p>
  
  <pre><code> public void actionPerformed(ActionEvent e) {
  
           int num1=Integer.parseInt(textArea_price.getText()); 
           int num2=Integer.parseInt(textArea_quantity.getText());
  
            int result = num1*num2;
            textField_Name.setText(Integer.toString(result));
  </code></pre>
  
  <p>Any suggestions on what I can change or add to make this code work with decimal numbers is appreciated. </p>