если вы хотите скрыть его, когда пользователь нажимает за его пределами, вы можете указать свойство autohide
DecoratedPopupPanel
public DecoratedPopupPanel(boolean autoHide,
boolean modal)
Creates an empty decorated popup panel, specifying its "auto-hide" and "modal" properties.
Parameters:
autoHide - true if the popup should be automatically hidden when the user clicks outside of it
modal - true if keyboard or mouse events that do not target the PopupPanel or its children should be ignored
см. javaDoc
другой вариант - это класс Timer, как вы обнаружили.