Referring to packages
From: Patrick Robinson (ipor20_at_central.sussex.ac.uk)
Date: 07/29/04
- Next message: Sam: "Re: RMI binding to SAME port but DIFFERENT IP address on SAME host"
- Previous message: Firewalker: "dial phone number, in java"
- Next in thread: Ryan Stewart: "Re: Referring to packages"
- Reply: Ryan Stewart: "Re: Referring to packages"
- Reply: Ryan Stewart: "Re: Referring to packages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Jul 2004 21:51:12 -0700
Can anyone explain how i can refer to another package that is at the
same 'level' in the directory structure as the one doing the
referring. i.e given the package structure: -
basedir
| |
package1 package2
how can i gain access to a class within package2 from within a source
file from package1 -- i only seem to b able to access classes within
packages/directories that are BELOW the package doing the referring.
In the context im thinking of i have a GUI package and a number of
DATA packages - i want the GUI classes to be able to access DATA
classes but also want DATA packages to refer to one another -- its not
essential that the classes are organized this way but seems like a
'common-sense' way of dividing up my classes to make them more
manageable.
cheers
P@
- Next message: Sam: "Re: RMI binding to SAME port but DIFFERENT IP address on SAME host"
- Previous message: Firewalker: "dial phone number, in java"
- Next in thread: Ryan Stewart: "Re: Referring to packages"
- Reply: Ryan Stewart: "Re: Referring to packages"
- Reply: Ryan Stewart: "Re: Referring to packages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|