gfxcontrol.updateComponents();
	    	public void actionPerformed(ActionEvent e)	    	{	    		String ac = e.getActionCommand();	    		if (ac.equals(ADD_SPRITE))	    		{	    			EbMap.addSprite(areaX, areaY,	    					(short) coordX, (short) coordY,							(short) 0);	    			gfxcontrol.remoteRepaint();	    		}	    		else if (ac.equals(DEL_SPRITE))	    		{	        		int sure = JOptionPane.showConfirmDialog(	        			    gfxcontrol,	        			    "Are you sure you want to delete "							+ "this sprite entry?\nThis action "							+ "cannot be undone.",	        			    "Are you sure?",	        			    JOptionPane.YES_NO_OPTION);	        		if (sure == JOptionPane.YES_OPTION)	        		{	        			EbMap.removeSprite(areaX,	        					areaY, num);	        			gfxcontrol.remoteRepaint();	        		}	    		}	    		else if (ac.equals(CHANGE_TPT))	    		{	        		short tpt = EbMap.getSpriteTpt(	        				areaX, areaY, num);	        		String input = JOptionPane.showInputDialog(	                        gfxcontrol,	                        "Change which TPT entry this"							+ " sprite entry will display. (Hexidecimal input)",	                        Integer.toHexString((int) tpt));	        		if (input != null)	        		{	        			short newTpt = (short) Integer.parseInt(input,16);	        			short[] spriteXY = EbMap.getSpriteXY(	        					areaX, areaY, num);	        			EbMap.removeSprite(	        					areaX, areaY, num);	        			EbMap.addSprite(	        					areaX, areaY,								spriteXY[0], spriteXY[1],								newTpt);	        			gfxcontrol.remoteRepaint();	        		}	    		}	    		else if (ac.equals(EDIT_TPT))	    		{	        		short tpt = EbMap.getSpriteTpt(	        				areaX, areaY, num);	    			net.starmen.pkhack.JHack.main.showModule(	            			TPTEditor.class, new Integer (tpt));	    			gfxcontrol.remoteRepaint();	    		}	    		else if (ac.equals(COPY_SPRITE))	    		{	    			copyTpt = EbMap.getSpriteTpt(	    					areaX, areaY, num);	    		}	    		else if (ac.equals(CUT_SPRITE))	    		{	    			copyTpt = EbMap.getSpriteTpt(	    					areaX, areaY, num);	    			EbMap.removeSprite(areaX,	    					areaY, num);	    			gfxcontrol.remoteRepaint();	    		}	    		else if (ac.equals(PASTE_SPRITE))	    		{	    			EbMap.addSprite(areaX, areaY,	    					(short) coordX, (short) coordY,							copyTpt);	    			gfxcontrol.remoteRepaint();	    		}	    		else if (ac.equals(ADD_DOOR))	    		{	    			EbMap.addDoor(areaX, areaY,	    					(short) (coordX / 8), (short) (coordY / 8),							(byte) 0, (byte) 0);	    			gfxcontrol.remoteRepaint();	    		}	    		else if (ac.equals(DEL_DOOR))	    		{	    			EbMap.removeDoor(areaX, areaY, num);	    			gfxcontrol.remoteRepaint();	    		}	    		else if (ac.equals(EDIT_DEST))	    		{	    			net.starmen.pkhack.JHack.main.showModule(DoorEditor.class, 	    					new int[] { areaX, areaY, num });	    		}	    		else if (ac.equals(JUMP_DEST))	    		{	    			EbMap.Destination dest = EbMap.getDestination(	    					EbMap.getDoorLocation(areaX, areaY, num).getDestIndex());	    			gfxcontrol.setMapXY(	    					dest.getX() * 8 / MapEditor.tileWidth,	    					dest.getY() * 8 / MapEditor.tileHeight);	    			gfxcontrol.reloadMap();	    			gfxcontrol.remoteRepaint();	    		}	    	}