I don't know of existing code. But it shouldn't be too hard to make. A GridLayout with at least 26 JButtons for each letter. Maybe the number pad too. Just add a listener to each Button that when pressed, the Buttons label is sent to whatever text field.
Actually, that might be kind of fun to write. I may take a stab at it. But
you should try it out yourself.