public void itemStateChanged(ItemEvent e) {
			//create a new font object.
			Font font;
			
			//if these are selected, do this code.
			if(boldBox.isSelected() && italicBox.isSelected()){
				font  = new Font("Serif", Font.BOLD + Font.ITALIC, 14);
			}
			else if(italicBox.isSelected()){
				font  = new Font("Serif", Font.ITALIC, 14);
				}
			else if(boldBox.isSelected()){
				font  = new Font("Serif", Font.BOLD, 14);
				}
			else{
				font = new Font("Serif", Font.PLAIN, 14);
				}
			
			textField.setFont(font);	
		}