title: Cant set textLabel because it contradicts parseDouble
body: <p>I have an ItemListener that looks like this:</p>
  
  <pre><code>private class Listener implements ItemListener
  {
      public void itemStateChanged(ItemEvent e)
      {
          calculate();
      }
  }
  </code></pre>
  
  <p>At the bottom of my <code>calculate()</code> method, I set these labels like this:</p>
  
  <pre><code>subtotalLbl.setText("\t\t\t\t\t\t\t\tSubtotal:\t\t\t\t\t\t\t\t\t " + String.valueOf(determinedSubTotal + priceIncrease) + "\t\t\t\t\t\t\t\t\t");
  taxLbl.setText("\t\t\t\t\t\t\t\tTax:\t\t\t\t\t\t\t\t\t " + String.valueOf(determinedTax + priceIncrease) + "\t\t\t\t\t\t\t\t\t");
  totalLbl.setText("\t\t\t\t\t\t\tTotal:\t\t\t\t\t\t\t\t\t " + String.valueOf(determinedTotal + priceIncrease) + "\t\t\t\t\t\t\t\t\t");
  </code></pre>
  
  <p>Then I have an ActionListener that uses the text from the <code>totalLbl</code> for parseDouble</p>
  
  <pre><code>private class BtnClicked implements ActionListener
  {       
      public void actionPerformed(ActionEvent e)
      {
          String input = totalLbl.getText().trim();
          Double parsedString = Double.parseDouble(input) * 0.20; 
  
          Object src = e.getSource();
  
          if(src == submit)
          {
              JOptionPane.showMessageDialog(null,"Thank you for your order - the tip will be " + fmt.format(parsedString), "Thank you" , JOptionPane.INFORMATION_MESSAGE);
          }
          else if(src == cancel)
          {
              JOptionPane.showMessageDialog(null,"Order was canceled" ,"Order Canceled" , JOptionPane.INFORMATION_MESSAGE);
          }
      }
  </code></pre>
  
  <p>Obviously the program is crashing at the line inside of the <code>BtnClicked</code>'s <code>actionPerformed</code> method where <code>parseDouble(input)</code> is at, because the <code>totalLbl</code> <code>JLabel</code> has "Total:" in it.. where else would I set this or how would I work around this? The "Total:" is required. (can't use <code>split()</code> )</p>
  
  <p>Here's a screenshot of what the entire <code>JFrame</code> looks like, program crashes when clicking the <strong>submit</strong> button:</p>
  
  <p><a href="https://imgur.com/nRdH6sT" rel="nofollow noreferrer"><img src="https://i.imgur.com/nRdH6sT.png" title="Hosted by imgur.com"/></a></p>