@Override
		public void insertUpdate(DocumentEvent e) {
			boolean haveNotEncounteredInvis = true;
			char lastChar;
			String fieldText = null;
			Document doc = (Document)e.getDocument();

			try {
				fieldText =doc.getText(0, doc.getLength());
			} catch (BadLocationException e1) {
				e1.printStackTrace();
			}
			if(fieldText.length() > 1){
				lastChar = fieldText.charAt(fieldText.length() - 1);
				if(lastChar == '\n'){
	
					int x = fieldText.length()-2;
					String enteredText = "";
					char currentChar;
					
					while(haveNotEncounteredInvis){
						currentChar = fieldText.charAt(x);
						if(currentChar == '\n' ){
							setEnteredText(enteredText);
							haveNotEncounteredInvis = false;
							display.setCaretPosition(display.getDocument().getLength());
						}
						else if(x == 0){
							enteredText = currentChar + enteredText;
							setEnteredText(enteredText);
							haveNotEncounteredInvis = false;	
						}
						else{
							enteredText = currentChar + enteredText;
						}
						x--;
					}
				}
			}
		}