> Thank you for your answer - can i ask another question? yes - but on the list :)
> I want the GUI to create a list that the user can click on to > execute an > individual target or else see the attributes of that target. > > I am thinking a hashtable is the best option since i need the target > attributes as well! As you said a vector is for a list but do > you think > the hashtable is suitable. > > What i want to do is load an ant build.xml file into a GUI which shows > the targets that the user can click on to execute. I have the GUI > working can calling pre-defined targets but i want this to be dynamic > i.e. loading the build.xml file and running the targets. You need an object holding all the data you need. And you need an adapter to display the data in a suitable form. E.g. JFace TableViewer uses java.lang.Object for holding the data and the custom implementation of the interface ...ContentProvider and ...LabelProvider do the instructions for displaying the data. So you could use a Vector holding target objects holding the data you need (e.g. you use Antīs own Target class :). When usings Swing provide a factory method which converts this list to a TableModel. When using SWT/JFace write the *Provider. Jan