<commit_before>package view;

import java.awt.Color;
import java.awt.Font;
import java.awt.GridLayout;

import javax.swing.ImageIcon;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollBar;
import javax.swing.JScrollPane;

import model.entity.AssignProductToOrder;
import model.entity.AssignProductToOwner;
import model.entity.Owner;
import model.entity.Product;
import model.entity.State;

public class SieteShowProduct extends JPanel{

	private static final long serialVersionUID = 1L;
	private GridSystem gridSystem;
	private JCheckBox checkBox;
	private JLabel lbImage;
	
	public  SieteShowProduct(AssignProductToOwner product) {
		setLayout(new GridLayout(1, 3,10,10));
		setBackground(Color.WHITE);
		checkBox = new JCheckBox();
		checkBox.setOpaque(false);
		add(checkBox);
		
		lbImage = new JLabel(product.getProduct().getImg());
		add(lbImage);
		
		JPanel panelInfo = new JPanel(new GridLayout(3, 1));
		panelInfo.setOpaque(false);
		JLabel lbNameProduct = new JLabel(product.getProduct().getName());
		lbNameProduct.setFont(new Font("Arial", Font.PLAIN, 20));
		lbNameProduct.setForeground(ConstantsUI.FOREGROUND_NAME_PRODUCT_SHOW_PRODUCT);
		panelInfo.add(lbNameProduct);
		
		JLabel lbNameOwner = new JLabel(product.getOwner().getName());
		lbNameOwner.setFont(new Font("Arial", Font.PLAIN, 20));
		lbNameOwner.setForeground(ConstantsUI.FOREGROUND_NAME_OWNER_SHOW_PRODUCT);
		panelInfo.add(lbNameOwner);
		
		JLabel lbPriceProduct = new JLabel("$"+product.getProduct().getPrice());
		lbPriceProduct.setFont(new Font("Arial", Font.PLAIN, 20));
		lbPriceProduct.setForeground(ConstantsUI.FOREGROUND_PRICE_SHOW_PRODUCT);
		panelInfo.add(lbPriceProduct);
		
		add(panelInfo);
	
	}
	
	public static void main(String[] args) {
		JFrame frame = new JFrame();
		JPanel panel = new JPanel(new GridLayout(10, 1));
		JScrollPane jScrollPane = new JScrollPane(panel);
		for (int i = 0; i < 10; i++) {
			panel.add(new SieteShowProduct(new AssignProductToOwner(new Product("sdfghjklñ", "sdfghjkl", 124, State.RECEIVED, new ImageIcon("src/image/Buttons/LetsDoItButton.png")), new Owner(01, "ya", "123"))));
		}
		frame.add(jScrollPane);
		frame.setVisible(true);
	}
}<commit_msg>cambiado el parametro imageicon a String osea la url.<commit_after>package view;

import java.awt.Color;
import java.awt.Font;
import java.awt.GridLayout;

import javax.swing.ImageIcon;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollBar;
import javax.swing.JScrollPane;

import model.entity.AssignProductToOrder;
import model.entity.AssignProductToOwner;
import model.entity.Owner;
import model.entity.Product;
import model.entity.State;

public class SieteShowProduct extends JPanel{

	private static final long serialVersionUID = 1L;
	private GridSystem gridSystem;
	private JCheckBox checkBox;
	private JLabel lbImage;
	
	public  SieteShowProduct(AssignProductToOwner product) {
		setLayout(new GridLayout(1, 3,10,10));
		setBackground(Color.WHITE);
		checkBox = new JCheckBox();
		checkBox.setOpaque(false);
		add(checkBox);
		
		lbImage = new JLabel(product.getProduct().getImg());
		add(lbImage);
		
		JPanel panelInfo = new JPanel(new GridLayout(3, 1));
		panelInfo.setOpaque(false);
		JLabel lbNameProduct = new JLabel(product.getProduct().getName());
		lbNameProduct.setFont(new Font("Arial", Font.PLAIN, 20));
		lbNameProduct.setForeground(ConstantsUI.FOREGROUND_NAME_PRODUCT_SHOW_PRODUCT);
		panelInfo.add(lbNameProduct);
		
		JLabel lbNameOwner = new JLabel(product.getOwner().getName());
		lbNameOwner.setFont(new Font("Arial", Font.PLAIN, 20));
		lbNameOwner.setForeground(ConstantsUI.FOREGROUND_NAME_OWNER_SHOW_PRODUCT);
		panelInfo.add(lbNameOwner);
		
		JLabel lbPriceProduct = new JLabel("$"+product.getProduct().getPrice());
		lbPriceProduct.setFont(new Font("Arial", Font.PLAIN, 20));
		lbPriceProduct.setForeground(ConstantsUI.FOREGROUND_PRICE_SHOW_PRODUCT);
		panelInfo.add(lbPriceProduct);
		
		add(panelInfo);
	
	}
	
	public static void main(String[] args) {
		JFrame frame = new JFrame();
		JPanel panel = new JPanel(new GridLayout(10, 1));
		JScrollPane jScrollPane = new JScrollPane(panel);
		for (int i = 0; i < 10; i++) {
			panel.add(new SieteShowProduct(new AssignProductToOwner(new Product("sdfghjklñ", "sdfghjkl", 124, State.RECEIVED, "src/image/Buttons/LetsDoItButton.png"), new Owner(01, "ya", "123"))));
		}
		frame.add(jScrollPane);
		frame.setVisible(true);
	}
}
{'fraction_non_alphanumeric': 0.11873800895331486, 'fraction_numerical': 0.012364101470901726, 'mean_word_length': 4.90188679245283, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '817891', 'n_tokens_mistral': 1712, 'n_tokens_neox': 1561, 'n_words': 301}