private void createUIComponents() {
    this.label2 = UIFactory.getInstance().getBodyLabel();
    this.title = UIFactory.getInstance().getHeaderLabel();
    this.price = UIFactory.getInstance().getBodyLabel();
    this.quantity = UIFactory.getInstance().getBodyLabel();
    this.label1 = new JLabel();
    /*ImageIcon image = new ImageIcon(getClass().getResource("cod4.jpg"));
    Image img = image.getImage();
    Image newimg = img.getScaledInstance(100, 100, java.awt.Image.SCALE_SMOOTH);
    Icon newIcon = new ImageIcon(newimg);
    this.label1 = new JLabel(newIcon);
    this.label1.setIcon(newIcon);*/

  }
 private void createUIComponents() {
   this.name = UIFactory.getInstance().getHeaderLabel();
   this.quantity = UIFactory.getInstance().getBodyLabel();
   this.subTotal = UIFactory.getInstance().getBodyLabel();
 }