I have been working through a book on java game programing, originally written in java 1.4, but Im working in 1.6. in the original source files I downloaded the code works fine but when I moved it to 1.6 this error popped up “Type mismatch: cannot convert from Window to JFrame” what should I change to update the code? The error pops up in 2 places shown below.
JFrame frame = super.screen.getFullScreenWindow();
Container contentPane = frame.getContentPane();
and
public void draw(Graphics2D g) {
super.draw(g);
JFrame frame = super.screen.getFullScreenWindow();
Any help on updating the code would be greatly appreciated.