public void showItemDetails(final int selectedIndex) 
	{
		tab1Details.removeAll();
		int totalX = 12;
		Arrays.fill(detailText, null);
		
		final String[][][] detailTItem = XmlParser.currentTrigger[triggersList.getSelectedIndex()].getDetailedItems();
		
		if (selectedIndex!=-1 && detailTItem[selectedIndex][0][0]!=null)
		{
			tab1Details.add(new JLabel("Trigger type: "));
			tab1Details.add(new JLabel(detailTItem[selectedIndex][0][0]));
			for (int x=0; x<6; x++)
			{
				tab1Details.add(new JLabel());
			}
			for (int x = 0; x < detailTItem[3].length; x++)
			{
				if (detailTItem[selectedIndex][1][x]!=null)
				{
					tab1Details.add(new JLabel(detailTItem[selectedIndex][1][x]));	
					detailText[x] = new JTextField(detailTItem[selectedIndex][2][x]);
					tab1Details.add(detailText[x]);
					totalX--;
				}
			}
			for (int x= 0; x<totalX;x++)
			{
				tab1Details.add(new JLabel());
			}
			tab1Details.add(new JLabel());
			tab1Details.add(applyButton);
			applyButton.addActionListener(new ActionListener() { 
				public void actionPerformed(ActionEvent e)
				{
					String updatedItem = "";
					for (int i = 0; i < detailText.length; i++)
					{
						if (detailText[i]!=null)
						{
							if (updatedItem =="")
							{
								updatedItem = detailTItem[selectedIndex][0][0] + "=" + detailText[i].getText();
							}
							else{
								updatedItem = updatedItem +"|"+ detailText[i].getText();
								System.out.println(updatedItem);
							}
							
						}
					}
				}
			});
		}
	}