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
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards 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