I have an application I'm updating from Java 6 to 7 inorder to get it to run.

The code looks like:

    public Canvas(GraphicsConfiguration config) {
        this();
        graphicsConfig = config;
    }

But when compiled I get:

"graphicsConfig is private access" @ line graphicsConfig = config.

How can I do the same thing in Java 7?