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
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  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