View Single Post
  #11 (permalink)  
Old 07-02-2008, 06:36 PM
Norm's Avatar
Norm Norm is offline
Senior Member
 
Join Date: Jun 2008
Location: Heredia, Costa Rica
Posts: 2,223
Norm is on a distinguished road
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
Reply With Quote