The example demonstrates how to set a custom JTree based popup component and how to specify the initial popup size.

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