Create a GUI(JPanel) which contains a Label some thing like " Please select ur login mode" followed by a combo box with the option for local or remote. Here if the user selects Remote then append a text field to the same GUI(JPanel) for reciving the remote IP. Finally have a ok button which will deside the the local or remote based on the selection u made earlier will set a flag. Using this flag make a call to a class which implements Factory pattern and return the reference of the appropriate DataInterface class. regards, RameshKumar
passwords must contain 14 characters, a number, punctuation, a small bird, a bit of cheese and a tiny ad.
professionally read, modify and write PDF files from Java