A predictive text box component in Java