Java Access Specifier issue

  • (2 Pages)
  • +
  • 1
  • 2

16 Replies - 1282 Views - Last Post: 11 January 2013 - 10:53 AM Rate Topic: -----

#16 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8332
  • View blog
  • Posts: 31,857
  • Joined: 06-March 08

Re: Java Access Specifier issue

Posted 11 January 2013 - 10:47 AM

Oups, you are right +1.
Based on

http://docs.oracle.c...esscontrol.html

The protected modifier specifies that the member can only be accessed within its own package (as with package-private) and, in addition, by a subclass of its class in another package.

This post has been edited by pbl: 11 January 2013 - 10:54 AM

Was This Post Helpful? 0
  • +
  • -

#17 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8332
  • View blog
  • Posts: 31,857
  • Joined: 06-March 08

Re: Java Access Specifier issue

Posted 11 January 2013 - 10:53 AM

You will need to show us you directory structure
I don't see how you can import from a package to another without a common root

you can have:

ca.pblinc.myPack and
ca.pblinc.yourPack

so the file in /ca/pblinc/yourPack can

import ca.pblinc.myPack

but how can a file in /yourPack import a file from /myPack ? Both have to be in the same directiory structure
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2