isEmpty() è un metodo di String che non avrebbe senso su un float...

Ti serve una cosa del genere:

codice:
        String text = productPrice.getText();
        if (text.isEmpty()) {
            System.out.println("Non hai inserito nulla!");
        } else {
            try {
                float price = Float.parseFloat(text);
                newProduct.setProductPrice(price);
            } catch (NumberFormatException ex) {
                System.err.println("Numero non valido!");
            }
        }