The example demonstrates how to add button components to the JYTextField and how to specify a custom prompt text.

All relevant lines are highlighted. Press the "Run..." button to start the demo.