private ClientApp(DataInputStream in, DataOutputStream out) {
		super(new GridLayout());
		this.in = in;
		this.out = out;
		try {
			out.writeUTF("SELECT_PRODUKTY");
			out.flush();

			int size = in.readInt();
			if (size <= 0)
				data = null;
			else {
				int size2 = in.readInt()-1;

				for (int i = 0; i < size; i++) {
					
					Object[] w = new Object[size2];
					for (int j = 0; j < 4; j++){
						w[j] = in.readUTF();
					}
					data.add(w);
				}
			}
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		/*
		 * selectProdukty = DataBaseGet.selectProdukty();
		 * 
		 * for (int i = 0; i < selectProdukty.size(); i++) {
		 * data.add(selectProdukty.get(i).toObject()); }
		 */
		model = new SerachList(data);
		JTable table = new JTable(model);

		Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
		table.setPreferredScrollableViewportSize(new Dimension(
				screenSize.width / 6, screenSize.height / 2));
		table.setFillsViewportHeight(true);
		table.setAutoCreateRowSorter(true);
		table.getSelectionModel().addListSelectionListener(new RowListener());

		JScrollPane scrollPane = new JScrollPane(table);
		add(scrollPane);
		table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
		JButton b1 = new JButton("Dodaj do koszyka");
		b1.setVerticalTextPosition(AbstractButton.BOTTOM);
		b1.setHorizontalTextPosition(AbstractButton.LEFT);
		b1.setMnemonic(KeyEvent.VK_M);
		b1.addActionListener(this);

		JLabel label = new JLabel("Menu", JLabel.CENTER);
		label.setVerticalTextPosition(JLabel.BOTTOM);
		label.setHorizontalTextPosition(JLabel.CENTER);
		// add(label);
		JButton b2 = new JButton("Wyszukaj");
		b2.setVerticalTextPosition(AbstractButton.BOTTOM);
		b2.setHorizontalTextPosition(AbstractButton.LEFT);
		b2.setMnemonic(KeyEvent.VK_M);
		b2.addActionListener(this);

		JButton b3 = new JButton("Wyczysc liste zakupow");
		b3.setVerticalTextPosition(AbstractButton.VERTICAL);
		b3.setHorizontalTextPosition(AbstractButton.CENTER);
		b3.setMnemonic(KeyEvent.VK_M);
		b3.addActionListener(this);

		JButton b4 = new JButton("Usun");
		b4.setVerticalTextPosition(AbstractButton.VERTICAL);
		b4.setHorizontalTextPosition(AbstractButton.CENTER);
		b4.setMnemonic(KeyEvent.VK_M);
		b4.addActionListener(this);

		JButton b5 = new JButton("Opinie");
		b5.setAction(action);
		b5.setVerticalTextPosition(AbstractButton.VERTICAL);
		b5.setHorizontalTextPosition(AbstractButton.CENTER);
		b5.setMnemonic(KeyEvent.VK_M);
		b5.addActionListener(this);

		JButton b6 = new JButton("Recenzje");
		b6.setVerticalTextPosition(AbstractButton.VERTICAL);
		b6.setHorizontalTextPosition(AbstractButton.CENTER);
		b6.setMnemonic(KeyEvent.VK_M);
		b6.addActionListener(this);

		JPanel panel = new JPanel();
		panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
		JPanel firstPanel = new JPanel();
		firstPanel.setLayout(new GridLayout(4, 4));
		firstPanel.setMaximumSize(new Dimension(400, 400));
		b1.setAlignmentX(Component.CENTER_ALIGNMENT);
		b2.setAlignmentX(Component.CENTER_ALIGNMENT);
		b3.setAlignmentX(Component.CENTER_ALIGNMENT);
		b4.setAlignmentX(Component.CENTER_ALIGNMENT);
		b5.setAlignmentX(Component.CENTER_ALIGNMENT);
		b6.setAlignmentX(Component.CENTER_ALIGNMENT);
		firstPanel.add(b1);
		firstPanel.add(b2);
		firstPanel.add(b3);
		firstPanel.add(b4);
		firstPanel.add(b5);
		firstPanel.add(b6);
		panel.setOpaque(false);
		panel.add(firstPanel);
		add(panel);
		modelKoszyk = new Koszyk(dataKoszyk);
		JTable koszyk = new JTable(modelKoszyk);
		koszyk.setFillsViewportHeight(true);
		koszyk.setAutoCreateRowSorter(true);
		koszyk.getSelectionModel().addListSelectionListener(new RowListener2());
		add(koszyk);

	}