java.lang.Error: Unresolved compilation problem: No enclosing instance of type TestGui is accessible. Must qualify the allocation with an enclosing instance of type TestGui (e.g. x.new A() where x is an instance of TestGui).

Coderanch | Fritz Guerilus | 7 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    please help java swing practice

    Coderanch | 7 years ago | Fritz Guerilus
    java.lang.Error: Unresolved compilation problem: No enclosing instance of type TestGui is accessible. Must qualify the allocation with an enclosing instance of type TestGui (e.g. x.new A() where x is an instance of TestGui).

    Root Cause Analysis

    1. java.lang.Error

      Unresolved compilation problem: No enclosing instance of type TestGui is accessible. Must qualify the allocation with an enclosing instance of type TestGui (e.g. x.new A() where x is an instance of TestGui).

      at TestGui.main()
    2. Unknown
      TestGui.main
      1. TestGui.main(TestGui.java:18)
      1 frame