Re: Syntax error in Eclipse on super()

From: Andrew Thompson (SeeMySites_at_www.invalid)
Date: 08/23/04


Date: Mon, 23 Aug 2004 14:03:58 GMT

On 23 Aug 2004 06:48:44 -0700, Girish Chavan wrote:

> This has me stumped!!

Do you have ..any idea what you are doing?

I removed the crap, and all the stuff you
apparently made up, fixed the nomenclature
and came up with this..

<sscce>
import java.awt.event.*;
import javax.swing.*;

class LockAction extends AbstractAction{

  LockAction() {
    super("Unlock");
  }

  public void actionPerformed(ActionEvent e) { ; }
}

class ConstrainAction extends AbstractAction{

  ConstrainAction() {
    super("Set Constraints");
  }

  public void actionPerformed(ActionEvent e) { ; }
}
</sscce>

It compiles, but does nothing, at least nothing
useful. However to get more intelligent answers
you need to ask more completely described questions.

Back to you.

[ By the way, this has nothing to do with Eclipse. ]

-- 
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology