would something like
MapDrive md = new MapDrive();
public String terminal = md.CompName.getText();
This would be in the Drives.java something like :
public class Drives implements Runnable
{
MapDrive md = new MapDrive();
public String terminal = md.CompName.getText();
public boolean connected = false; // tells if the conection to this terminal was possible or not
public boolean finished = false; // tels if the thread has finished its work
Hashtable drives = new Hashtable();
work? I'm not exactly sure how to use the constructor to get the info from the text field. Use Drives constructor? I am trying to pass the info from MapDrives, which is assigned to the variable terminal. The value of terminal is determined by what the user inputs in the text field, this value then needs to be passed to Drives and used in the methods. So bascially the user inputs a computer name (terminal) and then the program maps the drives using net use commands. Sorry I am still fairly new at this and want to make sure I am understanding correctly.