private JLayeredPane[] setupSwitchPanel() {
		// Load all icons into an array
		lever = new ImageIcon[19];
		lever[0] = createImageIcon("/switch_images/0.gif"); // Rotated levers
		lever[1] = createImageIcon("/switch_images/5.gif");
		lever[2] = createImageIcon("/switch_images/10.gif");
		lever[3] = createImageIcon("/switch_images/15.gif");
		lever[4] = createImageIcon("/switch_images/20.gif");
		lever[5] = createImageIcon("/switch_images/25.gif");
		lever[6] = createImageIcon("/switch_images/30.gif");
		lever[7] = createImageIcon("/switch_images/35.gif");
		lever[8] = createImageIcon("/switch_images/40.gif");
		lever[9] = createImageIcon("/switch_images/45.gif");
		lever[10] = createImageIcon("/switch_images/50.gif");
		lever[11] = createImageIcon("/switch_images/55.gif");
		lever[12] = createImageIcon("/switch_images/60.gif");
		lever[13] = createImageIcon("/switch_images/65.gif");
		lever[14] = createImageIcon("/switch_images/70.gif");
		lever[15] = createImageIcon("/switch_images/75.gif");
		lever[16] = createImageIcon("/switch_images/80.gif");
		lever[17] = createImageIcon("/switch_images/85.gif");
		lever[18] = createImageIcon("/switch_images/90.gif");
		ImageIcon onOffSwitch = createImageIcon("/switch_images/stop_start_switch.gif"); // The switch itself
		ImageIcon switchBolt = createImageIcon("/switch_images/bolt.gif"); // Bolt to hold lever in place
		
		
		// Resize them
		for (int i=0; i<19; i++) {
			lever[i] = resizeIcon(lever[i], SWITCH_WIDTH, (int)(SWITCH_HEIGHT/2.6));
		}
		onOffSwitch = resizeIcon(onOffSwitch,SWITCH_WIDTH, SWITCH_HEIGHT);
		switchBolt = resizeIcon(switchBolt,8,8);
		
		// Create and set up each layered pane.
		JLayeredPane[] sPane = new JLayeredPane[25];
		
		// Switch label
		JLabel[] sLabel = new JLabel[25];
		
		// Switch bolt label
		JLabel[] sBoltLabel = new JLabel[25]; 
		
		// All switches will be added to one panel.
	//	JPanel switchPanel = new JPanel();
	//	switchPanel.setPreferredSize(new Dimension(500,700));
//		switchPanel.setLayout(new GridLayout(5,5));
	//	switchPanel.setBackground(new Color(239,231,183));
		
		// Set up points for every lever icon.
		setPoints();
		
		LeverMouseListener handler = new LeverMouseListener();
		
		leverHash = new Hashtable<JLabel, Integer>();
		
		for (int i=0; i<25; i++) {
			sLabel[i] = new JLabel(onOffSwitch);
			sLabel[i].setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));
			sLabel[i].setBounds(0,0,SWITCH_WIDTH,SWITCH_HEIGHT);
			
			sBoltLabel[i] = new JLabel(switchBolt);
			sBoltLabel[i].setBounds(34,84,8,8);
			
			//switchArray.sL[i] = new JLabel(lever[0]);
			switchArray[i].setLeverLabel(lever[0]);
			switchArray[i].getLeverLabel().addMouseListener(handler); // Add mouse listener for lever movement
			switchArray[i].getLeverLabel().addMouseMotionListener(handler);
			
			// Associate labels with switch numbers by adding them to hash table.
			leverHash.put(switchArray[i].getLeverLabel(), i);
			
			sPane[i] = new JLayeredPane();
			sPane[i].setPreferredSize(new Dimension(SWITCH_WIDTH,SWITCH_HEIGHT));
			
			sPane[i].add(sLabel[i], new Integer(0));
			sPane[i].add(switchArray[i].getOffLightLabel(), new Integer(1));
			sPane[i].add(switchArray[i].getOnLightLabel(), new Integer(2));
			sPane[i].add(switchArray[i].getLeverLabel(), new Integer(3));
			sPane[i].add(sBoltLabel[i], new Integer(4));
			
	//		switchPanel.add(sPane[i]); // Add to panel
		}
		
		return sPane;
	}