Here you can find the source of recipientHintSelected(String hintString, TextField toList, boolean shiftKeyPressed)
static final public void recipientHintSelected(String hintString, TextField toList, boolean shiftKeyPressed)
//package com.java2s; import java.awt.TextField; public class Main { static final public void recipientHintSelected(String hintString, TextField toList, boolean shiftKeyPressed) { if (shiftKeyPressed) { String currentList = toList.getText(); if (currentList == null || currentList.length() == 0) toList.setText(hintString); else/*from ww w . j av a 2 s. co m*/ toList.setText(currentList + ", " + hintString); } else toList.setText(hintString); } }