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
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

    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