java.lang.Error: Unresolved compilation problems: The type MouseComponent must implement the inherited abstract method MouseMotionListener.mouseMoved(MouseEvent) The type MouseComponent must implement the inherited abstract method MouseMotionListener.mouseDragged(MouseEvent) Rectangel2D cannot be resolved to a type Rectangel2D cannot be resolved to a type Cannot instantiate the type MouseMotionListener This method must return a result of type Rectangle2D The method add(Component) in the type Container is not applicable for the arguments (Point)

Coderanch | Jon Camilleri | 8 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

    [newbie] The type MouseComponent must implement the inherited abstract method MouseMotionListener...

    Coderanch | 8 years ago | Jon Camilleri
    java.lang.Error: Unresolved compilation problems: The type MouseComponent must implement the inherited abstract method MouseMotionListener.mouseMoved(MouseEvent) The type MouseComponent must implement the inherited abstract method MouseMotionListener.mouseDragged(MouseEvent) Rectangel2D cannot be resolved to a type Rectangel2D cannot be resolved to a type Cannot instantiate the type MouseMotionListener This method must return a result of type Rectangle2D The method add(Component) in the type Container is not applicable for the arguments (Point)

    Root Cause Analysis

    1. java.lang.Error

      Unresolved compilation problems: The type MouseComponent must implement the inherited abstract method MouseMotionListener.mouseMoved(MouseEvent) The type MouseComponent must implement the inherited abstract method MouseMotionListener.mouseDragged(MouseEvent) Rectangel2D cannot be resolved to a type Rectangel2D cannot be resolved to a type Cannot instantiate the type MouseMotionListener This method must return a result of type Rectangle2D The method add(Component) in the type Container is not applicable for the arguments (Point)

      at MouseComponent.<init>()
    2. Unknown
      MouseTest$1.run
      1. MouseComponent.<init>(MouseComponent.java:14)
      2. MouseFrame.<init>(MouseFrame.java:10)
      3. MouseTest$1.run(MouseTest.java:14)
      3 frames
    3. Java RT
      EventDispatchThread.run
      1. java.awt.event.InvocationEvent.dispatch(Unknown Source)
      2. java.awt.EventQueue.dispatchEvent(Unknown Source)
      3. java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      4. java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      5. java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      6. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      7. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      8. java.awt.EventDispatchThread.run(Unknown Source)
      8 frames