private void setupButtons() {
    	// Create scanner to read in button names.  
    	//Note: The text file contains two lines per button. The 1st line is for the name, 2nd is for the color (red or green).
    	 
		Scanner s = null;
		try {
			s = new Scanner(new BufferedReader(new FileReader("button_info.txt")));
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
		
    	buttonArray = new Button[25];
    	
    	for (int i=0; i<24; i++) {
    		// Create button with status set to off (0). Button's name and color are initialized from the text file.
    		//String line = s.nextLine();
    		//String colors = s.nextLine();
    		//System.out.println(line + " " + colors);
    		buttonArray[i] = new Button(s.nextLine(), i, 0, Integer.parseInt(s.nextLine()), BUTTON_WIDTH);
    		
    		buttonArray[i].getPushButton().addActionListener(new ActionListener() {
				@Override
				public void actionPerformed(ActionEvent e) {
					RoundButton pushedButton = (RoundButton)e.getSource();
					buttonArray[pushedButton.getButtonNum()].toggleButton();
					
					// Send data to hard panel.
					//if (UART_READY)
					//	sendUART(1, pushedButton.getButtonNum(), buttonArray[pushedButton.getButtonNum()].getStatus());
				}
    			
    		});
    	}
    	
    	s.close(); // Close the input file
    }