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?

What class is graphicsConfig in?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.