I need to extract the string elements in an ArrayList and add them
individually to the cCombobox. I'm having a lot of trouble with
this.
---- Code ------
DirChecker myChecker = new DirChecker();
ArrayList showList = new ArrayList();//
showList = myChecker.show();//This method returns the files in the
directory
Object[] cObject = {showList.toString()};// I get all the
files in this format -[file1,file2,file3].
cComboBox = new JComboBox(cObject);
cComboBox.addActionListener(this);
mySecondPanel.add(cComboBox);
this.getContentPane().add(mySecondPanel,BorderLayout.WEST);