Erro de compilacao :
Delta.java:60: toString() in java.lang.Object cannot be applied to (double)
resultado.setText(toString(result));
^
1 error
botao.addActionListener( new ActionListener() {
public void actionPerformed(ActionEvent event)
{
// textoa.getText();
// textob.getText();
// textoc.getText();
a = Double.parseDouble(textoa.getText());
b = Double.parseDouble(textob.getText());
c = Double.parseDouble(textoc.getText());
result = b*b - 4*a*c;
resultado.setText(toString(result));
}
});
O que fazer??
Obrigado