View Single Post
  #10 (permalink)  
Old 07-02-2008, 05:38 PM
Wraithier Wraithier is offline
Member
 
Join Date: Jun 2008
Posts: 10
Wraithier is on a distinguished road
would something like

Code:
MapDrive md = new MapDrive(); public String terminal = md.CompName.getText();
This would be in the Drives.java something like :

Code:
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.

Last edited by Wraithier : 07-02-2008 at 05:48 PM.
Reply With Quote