H
Hal Vaughan
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?
Thanks!
Hal
--------------
public class SedFrame extends JFrame implements ActionListener,
WindowListener {
public void windowActivated(WindowEvent wEvent) {
return;
}
public void windowDeactivated(WindowEvent wEvent) {
return;
}
public void windowOpened(WindowEvent wEvent) {
return;
}
public void windowClosed(WindowEvent wEvent) {
return;
}
public void windowClosing(WindowEvent wEvent) {
return;
}
public void windowDeiconified(WindowEvent wEvent) {
return;
}
public void windowIconified(WindowEvent wEvent) {
return;
}
public void actionPerformed(ActionEvent aEvent) {
return;
}
//Other methods, including a constructor are also included...
}
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?
Thanks!
Hal
--------------
public class SedFrame extends JFrame implements ActionListener,
WindowListener {
public void windowActivated(WindowEvent wEvent) {
return;
}
public void windowDeactivated(WindowEvent wEvent) {
return;
}
public void windowOpened(WindowEvent wEvent) {
return;
}
public void windowClosed(WindowEvent wEvent) {
return;
}
public void windowClosing(WindowEvent wEvent) {
return;
}
public void windowDeiconified(WindowEvent wEvent) {
return;
}
public void windowIconified(WindowEvent wEvent) {
return;
}
public void actionPerformed(ActionEvent aEvent) {
return;
}
//Other methods, including a constructor are also included...
}