java.lang.Error: Unresolved compilation problem: ActionListener cannot be resolved to a type

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] Syntax error on token(s), misplaced construct(s)

    Coderanch | 8 years ago | Jon Camilleri
    java.lang.Error: Unresolved compilation problem: ActionListener cannot be resolved to a type

    Root Cause Analysis

    1. java.lang.Error

      Unresolved compilation problem: ActionListener cannot be resolved to a type

      at homenetwork.bkr.training.TextComponentFrame.<init>()
    2. homenetwork.bkr.training
      TextComponentTest$1.run
      1. homenetwork.bkr.training.TextComponentFrame.<init>(TextComponentFrame.java:35)
      2. homenetwork.bkr.training.TextComponentTest$1.run(TextComponentTest.java:14)
      2 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