Here you can find the source of recipientHintSelected(String hintString, JTextField toList, boolean shiftKeyPressed)
static public final void recipientHintSelected(String hintString, JTextField toList, boolean shiftKeyPressed)
//package com.java2s; import javax.swing.JTextField; public class Main { static public final void recipientHintSelected(String hintString, JTextField toList, boolean shiftKeyPressed) { if (shiftKeyPressed) { String currentList = toList.getText(); if (currentList == null || currentList.length() == 0) toList.setText(hintString); else//from www . j a va2s .c o m toList.setText(currentList + ", " + hintString); } else toList.setText(hintString); } }