I have a small error getting the date of a jtextfield, the error occurs:
String can not be converted to date
Follow my code:
public TelaControle getVendaFromTela() throws ParseException {
Venda vDaTela = new Venda();
vDaTela.setCliente(inpCliente.getText());
vDaTela.setCarro(inpCarro.getText());
vDaTela.setData(inpData.getText());
return vDaTela;
}