java.lang.Error: Unresolved compilation problem: The method add(String, Component) in the type Container is not applicable for the arguments (String, MyDrawBoard)

Coderanch | chanakya nani | 6 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

    Eclipse and Netbeans

    Coderanch | 6 years ago | chanakya nani
    java.lang.Error: Unresolved compilation problem: The method add(String, Component) in the type Container is not applicable for the arguments (String, MyDrawBoard)

    Root Cause Analysis

    1. java.lang.Error

      Unresolved compilation problem: The method add(String, Component) in the type Container is not applicable for the arguments (String, MyDrawBoard)

      at TwoButtons.go()
    2. Unknown
      TwoButtons.main
      1. TwoButtons.go(TwoButtons.java:29)
      2. TwoButtons.main(TwoButtons.java:11)
      2 frames