ok i know i asked this question before.. but i didn't state my self clearly so here it is: Ok i posted a question earlier today and someone told me to be more specific about my problem ..so here i go.. i hope this is better... Ok this is my present situation, it a little long but please give it a read : Ok bascially i am doing a project. My project is actually to make a GUI to simulate a Celluar Network System( Tough huh!) So bacially in a Celluar System there are many component eg. the Phone , transmitting Tower , cables and so on. Ok so basically i have a main screen with buttons on the side of the screen. And whenever i click a button it adds one of the compoents of the celluar system to the screen( It actually adds a small picture of the phone or transmitting tower or cable to the screen depending on which button i press. Hence it can be assumed the Code to make this screen with the various buttons to added the celluar compoenets to the screen is one class. Now there are other classes that actually make the picture of the component.Eg there is a seperate class that makes the picture of the phone and allows the user to double click on the phone and then a text field appears which allows the user to give the phone a name. When the person eneters the name of the phone example "phone1" and presses eneter the word phone one appears under the picture of the phone. Now this is class two. Then there are other similar classes that allow the user to make the transmitting tower and also give it a name.It should be noted that a gif picture is used for the pictures of the components. Now here is the problem. Lets jus comsider the Phone and Tranmitting tower for the time being. My project is like this. If 2 compoents eg the Phone and the Transmitting Tower have the same name they are assumed Conneted.hence if they have the same name i want my program to print "They are connected" If they have diffrent names i want the program to print " They are not connected" So i am assuming i need a seperate class to compare the actual names of the components the user types into the text field after double clicking the pictures of the compoenets. How does one do this. Its harder than it sounds. Thanks for your time.