|
How does the program run? Is this the way: It starts by creating the GUI in MapDrives, the user enters the terminal and then the Drives object is created. At this point you have the terminal value and need to pass it to the Drives object. You'd do that as I suggested above, by using the Drives constructor.
If you don't know how to use constructors and as basic as that is to Java programming, I'd suggest you find a java programming text and read up some before continuing. You are going to have LOTS of cases like this to solve and you need some basic understanding of how to create classes.
Good luck.
Norm
|