/** Cadastra um novo produto */ public void novoProduto() { while (true) { try { if (!this.controller.create()) { break; } this.loadItems(); if (Util.showConfirm("Gostaria de cadastrar mais um produto?", "Estoque") == false) { break; } } catch (Exception e) { System.out.println(e.getMessage()); break; } } }