/** * Immediately shows the popup at the specified point. {@link getContent()} is called to get the * content of the popup. * * @param showAt Show at the specified point. */ public void show(Point showAt) { this.removeAll(); Box content = new Box(BoxLayout.Y_AXIS); UIUtils.setPadding(content, 5, 5, 5, 5); content.add(this.getContent()); this.add(content); // For some reason we need to set the size manually. content.setPreferredSize(new Dimension(310, content.getPreferredSize().height)); this.viewer.showPopupAt(this, showAt, true); }