I am not sure what you are trying to achive, but regarding your compilation issue, I notice two errors in your code:
-
Remove the call
super(texte)
fromTime
constructor, as the class doesn’t extend any other class, so you cannot invoke any constructor of superclass. -
The constructor
Time(Build, String)
accept aBuild
instance as first parameter, so you cannot passthis
when instantiate Time variable insideCalculAction
, because it would refer to the instance of CalculAction class, but you have to pass the instance memberfenetre
, in this way:Time Time = new Time(fenetre, “Time”);