Ah. Found some sample code to play with that uses a JPopupMenu containing components.