@@ -0,0 +1,838 @@
+import javax.swing.ImageIcon;%0Aimport java.awt.*;%0Aimport javax.swing.*;%0Aimport java.io.FileNotFoundException;%0A%0Apublic class Element%0A%7B%0A%09public ImageIcon rep;%0A%09private Rectangle ele;%0A%09public char letter;%0A%09%0A%09private String choose(char c)%0A%09%7B%0A%09%09String str = new String();%0A%09%09str = c + %22.png%22;%0A%09%09return str;%0A%09%7D%0A%09%0A%09public void setW(int w)%7Bele.width = w;%7D%0A%09public void setH(int h)%7Bele.height = h;%7D%0A%09public void setX(int x)%7Bele.x = x;%7D%0A%09public void setY(int y)%7Bele.y = y;%7D%0A%09public int getW()%7Breturn ele.width;%7D%0A%09public int getH()%7Breturn ele.height;%7D%0A%09public int getX()%7Breturn ele.x;%7D%0A%09public int getY()%7Breturn ele.y;%7D%0A%09public char getLetter()%7Breturn letter;%7D%0A%09%09%0A%09public Element(char c)%0A%09%7B%0A%09%09rep = new ImageIcon(choose(c));%0A%09%09letter = c;%0A%09%09ele = new Rectangle();%0A%09%7D%0A%09%0A%09%0A%09public static void main(String%5B%5D args) throws FileNotFoundException%0A%09%7B%0A%0A%09%7D%09%09%0A%7D%0A

Create Element.java