The following a "method" to which is part of a file with more code.
the basis of this searchDataBase is to search the data base based on which radio button is clicked and then display in the console the appropriate information.


Java Code:
public JPanel SearchDataBase()
	{
		JPanel search = new JPanel();
		search.setLayout(new GridLayout(5,2));
		search.setBorder(new TitledBorder (new EtchedBorder(), "Search"));
		
		final JRadioButton custID = new JRadioButton( "ID");
		final JRadioButton name = new JRadioButton("First Name");
		final JRadioButton phoneNumber = new JRadioButton("Phone Number");
		
		final JTextField searchFeild = new JTextField("Search");
		JButton go = new JButton("Search");
		class AddSearchListener implements ActionListener
		{

			public void actionPerformed(ActionEvent e) 
			{
				String text = searchFeild.getText();
				CustomerBroker cd = CustomerBroker.getBroker();
				
				if (custID.isSelected())
				{
					ArrayList listId = (ArrayList) cd.search(text, "id");
					for(int i = 0; i<listId.size(); i++)
					{
						System.out.println(listId.get(i)); 
					}
				}
				else if (name.isSelected())
				{
					ArrayList listName = (ArrayList) cd.search(text, "name");
					for(int i = 0; i<listName.size(); i++)
					{
						System.out.println(listName.get(i)); 
					}
				}
				else if (phoneNumber.isSelected())
				{
					ArrayList listNumber = (ArrayList) cd.search(text, "phonenumber");
					for(int i = 0; i<listNumber.size(); i++)
					{
						System.out.println(listNumber.get(i)); 
					}
				}
				
			}
		}
		ActionListener listener = new AddSearchListener();
		go.addActionListener(listener);
the issue?
I need to take the contents of those arrays, so lets go with id for example. you search the data base for ID of 22, and get 7 resualts (id's that contain 22 in them - note: there is back end code not displayed here that will search, parse and display for me) and I need to display it with in a peice of code further down which is a JPanel withe a JList in is as shown below:

Java Code:
public JPanel OutPutTextArea()
	{
		JPanel outPut = new JPanel();
		outPut.setBorder(new TitledBorder (new EtchedBorder(), "Out put"));
		outPut.setBackground(null);
		
		JList list = new JList();
		String width = "12345678901234567890123456789012345678901234567890123";
		list.setPrototypeCellValue(width);
		list.setVisibleRowCount(5);
		JScrollPane scroll = new JScrollPane(list);
		
		Vector listVector = new Vector();
		list.setListData(listVector);
		
		outPut.add(scroll);
		
		return outPut;
	}
Now if I can get the appropriate array list "call" into the vector to be displayed out onto the screen in the JList were good to go, but I am not sure how to do that....

hence why i am here