protected void initComponents() {

		jScrollPane1 = new JScrollPane();
		jListingPanelList = new JList<String>(jListingModel);
		jListingPanelList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
		jScrollPane2 = new JScrollPane();
		jChoicesPanelList = new JList<String>(jChoicesModel);
		jChoicesPanelList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
		jAddButton = new JButton();
		jRemoveButton = new JButton();
		jOKButton = new JButton();
		jCancelButton = new JButton();
		jLabel3 = new JLabel("Select ops from left:");

		//Afisare tool tips cand mouse-ul est ein dreptul unui element din lista
		jListingPanelList.addMouseMotionListener(new MouseMotionAdapter() {
			public void mouseMoved(MouseEvent e) {

				int index = jListingPanelList.locationToIndex(e.getPoint());
				Rectangle rectangle = jListingPanelList.getCellBounds(index,
						index);
				if (rectangle != null && index >= 0
						&& index < jListingPanelList.getModel().getSize()
						&& rectangle.contains(e.getPoint())) {

					String execName = ((DefaultListModel<String>) jListingPanelList
							.getModel()).elementAt(index);
					for (Operation op : operations)
						if (op.getName().equals(execName)) {

							if (!op.getDesc().isEmpty())
								// setez Tool Tip cu descrierea executabilului
								jListingPanelList.setToolTipText(op.getDesc());
						}
				} else {

					jListingPanelList.setToolTipText(null);
				}
			}
		});

		jChoicesPanelList.setCellRenderer(new ListElement());

		//Afisare tool tips cand mouse-ul este in dreptul unui element din lista
		jChoicesPanelList.addMouseMotionListener(new MouseMotionAdapter() {

			public void mouseMoved(MouseEvent e) {

				int index = jChoicesPanelList.locationToIndex(e.getPoint());
				ArrayList<Operation> allOps = new ArrayList<Operation>();
				allOps.addAll(oldSelection);
				allOps.addAll(newSelection);

				Rectangle rectangle = jChoicesPanelList.getCellBounds(index,
						index);

				if (rectangle != null && index >= 0
						&& index < jChoicesPanelList.getModel().getSize()
						&& rectangle.contains(e.getPoint())) {

					if (!allOps.get(index).toString().isEmpty()) {
						jChoicesPanelList.setToolTipText(allOps.get(index)
								.toString());
					}
				} else {

					jChoicesPanelList.setToolTipText(null);
				}
			}
		});

		jScrollPane1.setViewportView(jListingPanelList);
		jScrollPane2.setViewportView(jChoicesPanelList);

		jAddButton.setText("Add");
		jAddButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent evt) {
				jAddButtonActionPerformed(evt);

			}
		});

		jRemoveButton.setText("Remove");
		jRemoveButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent evt) {
				jRemoveButtonActionPerformed(evt);
			}
		});

		jOKButton.setText("OK");
		jOKButton.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				SecondaryWindow.this.okClicked(evt);
			}
		});

		jCancelButton.setText("Cancel");
		jCancelButton.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				SecondaryWindow.this.cancelClicked(evt);
			}
		});

		GroupLayout layout = new GroupLayout(getContentPane());
		getContentPane().setLayout(layout);
		layout.setHorizontalGroup(layout
				.createParallelGroup(GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addGap(86, 86, 86)
								.addComponent(jOKButton,
										GroupLayout.PREFERRED_SIZE, 100,
										GroupLayout.PREFERRED_SIZE)
								.addPreferredGap(
										LayoutStyle.ComponentPlacement.RELATED,
										GroupLayout.DEFAULT_SIZE,
										Short.MAX_VALUE)
								.addComponent(jCancelButton,
										GroupLayout.PREFERRED_SIZE, 100,
										GroupLayout.PREFERRED_SIZE)
								.addGap(87, 87, 87))
				.addGroup(
						layout.createSequentialGroup()
								.addContainerGap()
								.addComponent(jScrollPane1,
										GroupLayout.PREFERRED_SIZE, 233,
										GroupLayout.PREFERRED_SIZE)
								.addPreferredGap(
										LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												GroupLayout.Alignment.LEADING,
												false)
												.addComponent(
														jLabel3,
														GroupLayout.DEFAULT_SIZE,
														GroupLayout.DEFAULT_SIZE,
														Short.MAX_VALUE)
												.addComponent(
														jAddButton,
														GroupLayout.DEFAULT_SIZE,
														GroupLayout.DEFAULT_SIZE,
														Short.MAX_VALUE)
												.addComponent(
														jRemoveButton,
														GroupLayout.DEFAULT_SIZE,
														GroupLayout.DEFAULT_SIZE,
														Short.MAX_VALUE))
								.addPreferredGap(
										LayoutStyle.ComponentPlacement.RELATED,
										GroupLayout.DEFAULT_SIZE,
										Short.MAX_VALUE)
								.addComponent(jScrollPane2,
										GroupLayout.PREFERRED_SIZE, 233,
										GroupLayout.PREFERRED_SIZE)
								.addContainerGap()));
		layout.setVerticalGroup(layout
				.createParallelGroup(GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addGroup(
										layout.createParallelGroup(
												GroupLayout.Alignment.LEADING)
												.addGroup(
														layout.createSequentialGroup()
																.addGap(65, 65,
																		65)
																.addGroup(
																		layout.createParallelGroup(
																				GroupLayout.Alignment.LEADING,
																				false)
																				.addComponent(
																						jScrollPane1,
																						GroupLayout.DEFAULT_SIZE,
																						210,
																						Short.MAX_VALUE)
																				.addComponent(
																						jScrollPane2)))
												.addGroup(
														layout.createSequentialGroup()
																.addContainerGap()
																.addComponent(
																		jLabel3,
																		GroupLayout.PREFERRED_SIZE,
																		33,
																		GroupLayout.PREFERRED_SIZE)
																.addGap(49, 49,
																		49)
																.addComponent(
																		jAddButton)
																.addGap(64, 64,
																		64)
																.addComponent(
																		jRemoveButton)))
								.addPreferredGap(
										LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												GroupLayout.Alignment.BASELINE)
												.addComponent(jOKButton)
												.addComponent(jCancelButton))
								.addContainerGap(GroupLayout.DEFAULT_SIZE,
										Short.MAX_VALUE)));

		pack();
	}