public QuestView() {
		setLayout(null);
		setSize(PANEL_WIDTH, PANEL_HEIGHT);

		setOfpath = new HashSet<String>();

		picsListModel = new DefaultListModel<String>();
		soundsListModel = new DefaultListModel<String>();
		imageInventoryList = new ArrayList();
		soundInventoryList = new ArrayList();
		
		sounds = new JList(soundsListModel);
		
		sounds.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
		sounds.setCellRenderer(new ListRender());
		soundsScrollPane = new JScrollPane(sounds);
		soundsScrollPane.setBounds(23, 163, 302, 60);
		add(soundsScrollPane);

		lblPics = new JLabel("Obrazy");
		lblPics.setBounds(23, 42, 76, 14);
		add(lblPics);

		pics = new JList(picsListModel);
		pics.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
		pics.setCellRenderer(new ListRender());
		pics.addMouseListener(new MouseAdapter() {
		    public void mouseClicked(MouseEvent evt) {
		        JList list = (JList)evt.getSource();
		        if (evt.getClickCount() == 2) {
		        	if(list.getSelectedValue()!=null)
		        	{
			            int index = list.locationToIndex(evt.getPoint());
			            JFrame jf= new JFrame();
			            jf.setContentPane(new ImagePreview((String)list.getSelectedValue()));
			            jf.pack();
			            jf.setLocation(evt.getPoint().x,evt.getPoint().y);
			            jf.setVisible(true);
		        	}
		        } 
		    }
		});
		picsScrollPane = new JScrollPane(pics);
		picsScrollPane.setBounds(23, 67, 302, 60);
		add(picsScrollPane);
		
		lblNarration = new JLabel("Dźwięk do narracji");
		lblNarration.setBounds(23,234,120,23);
		add(lblNarration);
		
		listNarration = new ArrayList();
		listNarration.add("Brak");
		
		comboBoxNarration = new JComboBox(listNarration.toArray());
		comboBoxNarration.setBounds(188,234,137,23);
		add(comboBoxNarration);
		
		btnAddParagraph = new JButton("Edytuj treść zagadki");
		btnAddParagraph.setBounds(527, 234, 120, 23);
		add(btnAddParagraph);


		lblSounds = new JLabel("Dźwięki");
		lblSounds.setBounds(23, 138, 76, 14);
		add(lblSounds);

		btnAddPics = new JButton("Dodaj");
		btnAddPics.setBounds(126, 38, 89, 23);
		add(btnAddPics);

		btnDelPics = new JButton("Usuń");
		btnDelPics.setBounds(236, 38, 89, 23);
		add(btnDelPics);

		btnAddSounds = new JButton("Dodaj");
		btnAddSounds.setBounds(126, 134, 89, 23);
		add(btnAddSounds);

		btnDelSounds = new JButton("Usuń");
		btnDelSounds.setBounds(236, 134, 89, 23);
		add(btnDelSounds);

		lblPreNote = new JLabel("Notka początkowa");
		lblPreNote.setBounds(345, 38, 120, 23);
		add(lblPreNote);

		preNote = new JTextArea();
		preNote.setLineWrap(true);
		introScrollPane = new JScrollPane(preNote);
		introScrollPane.setBounds(345, 67, 302, 60);
		add(introScrollPane);

		lblPostNote = new JLabel("Notka końcowa");
		lblPostNote.setBounds(345, 138, 120, 23);
		add(lblPostNote);

		postNote = new JTextArea();
		postNote.setLineWrap(true);
		outroScrollPane = new JScrollPane(postNote);
		outroScrollPane.setBounds(345, 163, 302, 60);
		add(outroScrollPane);

		addButtonsListeners();
	}