/** Creates new form CreateProductJPanel */ public ViewProductDetailJPanel(JPanel upc, Product p) { initComponents(); userProcessContainer = upc; product = p; nameField.setText(p.getProdName()); idField.setText(convertInteger(p.getModelNumber())); priceField.setText(convertInteger(p.getPrice())); }