java.lang.Error: Unresolved compilation problems: The constructor ColorAction(String, ImageIcon) is undefined The constructor ImageIcon(String, Color) is undefined Syntax error, insert ")" to complete VariableInitializer The constructor ColorAction(String, ImageIcon) is undefined The constructor ImageIcon(String, Color) is undefined Syntax error, insert ")" to complete VariableInitializer The constructor ColorAction(String, ImageIcon) is undefined The constructor ImageIcon(String, Color) is undefined Syntax error, insert ")" to complete VariableInitializer

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 constructor <Class>(String, ImageIcon) is undefined

    Coderanch | 8 years ago | Jon Camilleri
    java.lang.Error: Unresolved compilation problems: The constructor ColorAction(String, ImageIcon) is undefined The constructor ImageIcon(String, Color) is undefined Syntax error, insert ")" to complete VariableInitializer The constructor ColorAction(String, ImageIcon) is undefined The constructor ImageIcon(String, Color) is undefined Syntax error, insert ")" to complete VariableInitializer The constructor ColorAction(String, ImageIcon) is undefined The constructor ImageIcon(String, Color) is undefined Syntax error, insert ")" to complete VariableInitializer

    Root Cause Analysis

    1. java.lang.Error

      Unresolved compilation problems: The constructor ColorAction(String, ImageIcon) is undefined The constructor ImageIcon(String, Color) is undefined Syntax error, insert ")" to complete VariableInitializer The constructor ColorAction(String, ImageIcon) is undefined The constructor ImageIcon(String, Color) is undefined Syntax error, insert ")" to complete VariableInitializer The constructor ColorAction(String, ImageIcon) is undefined The constructor ImageIcon(String, Color) is undefined Syntax error, insert ")" to complete VariableInitializer

      at homenetwork.bkr.training.ActionFrame.<init>()
    2. homenetwork.bkr.training
      ActionTest$1.run
      1. homenetwork.bkr.training.ActionFrame.<init>(ActionFrame.java:19)
      2. homenetwork.bkr.training.ActionTest$1.run(ActionTest.java:16)
      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