@Override
    public void actionPerformed(ActionEvent e) {
        if (deltaValue.getClass()==Integer.class)
        {
            String toChange = myText.getText();
            try 
            {
                int value = Integer.parseInt(toChange);
                value += (Integer)(deltaValue);
                myText.setText(""+value);
            }
            catch (Exception ex)
            {
            }
        }
        if (deltaValue.getClass()==Double.class)
        {
            String toChange = myText.getText();
            try 
            {
                double value = Double.parseDouble(toChange);
                value += (Double)(deltaValue);
                myText.setText(""+value);
            }
            catch (Exception ex)
            {
            }
        }
        if (deltaValue.getClass()==String.class)
        {
            String toChange = myText.getText();
            toChange += deltaValue;
            myText.setText(toChange);
        }
        myText.getInputVerifier().verify(myText);
    }