import java.awt.*;

// An instance of IntLabel is an integer that is associated
// with a Label that appears on the GUI. The purpose of having
// a class for this is to ensure that whenever the integer is
// changed, the corresponding Label is also changed.

public class IntLabel {
// i is the integer, and Label lab ALWAYS contains this
// integer as a String, followed by two blanks
	private int in;
	private Label lab;
	
// Constructor: an integer with initial value i
// that is associated with Label l
public IntLabel(int i, Label l) {
	in= i;
	lab= l;
	lab.setText(String.valueOf(i) + "  ");
	}

// Return the value of the integer
public int getInt()
	{return in;}
		
// Set the value of the integer to i
public void setInt(int i) {
	in= i;
	lab.setText(String.valueOf(i) + "  ");
	}
}