@@ -0,0 +1,1060 @@
+import java.awt.Dimension;%0Aimport java.awt.Graphics;%0Aimport java.awt.Image;%0Aimport java.awt.Toolkit;%0A%0Aimport javax.swing.JPanel;%0A%0A%09/**%0A%09 * %0A%09 * The Keyboard class extends JPanel and displays the keyboard%0A%09 * GUI images.%0A%09 * %0A%09 * @author Steven Raines%0A%09 *%0A%09 */%0A%09public class Keyboard extends JPanel %7B%0A%09%09private Image img;%0A%09%09%0A%09%09// All of the keyboard images are 500x500 pixels%0A%09%09private final int WIDTH = 500;%0A%09%09private final int HEIGHT = 500;%0A%09%09%0A%09%09%0A%09%09public Keyboard() %7B%0A%09%09%09super();%0A%09%09%09img = Toolkit.getDefaultToolkit().getImage(%22images/lowercase/lowercase_NULL%22);%0A%09%09%7D%0A%09%09%0A%09%09%0A%09%09public Keyboard(Image img) %7B%0A%09%09%09super();%0A%09%09%09this.img = img;%0A%09%09%7D%0A%09%09%0A%09%09%0A%09%09/**%0A%09%09 * Overriden getPreferredSize method will always return the dimensions%0A%09%09 * of the keyboard images, 500x500 pixels.%0A%09%09 */%0A%09%09@Override%0A%09%09public Dimension getPreferredSize() %7B%0A%09%09%09return new Dimension(WIDTH, HEIGHT);%0A%09%09%7D%0A%09%09%0A%09%09%0A%09%09/**%0A%09%09 * Overriden paintComponent method simply draws an image.%0A%09%09 */%0A%09%09@Override%0A%09%09public void paintComponent(Graphics g) %7B%0A%09%09%09g.drawImage(img, 0, 0, WIDTH, HEIGHT, this);%0A%09%09%7D%0A%09%7D%0A

Create Keyboard.java