List of usage examples for javax.swing JPopupMenu repaint
public void repaint()
From source file:lcmc.common.ui.ResourceGraph.java
protected final void showPopup(final JPopupMenu popup, final Point2D p) { final int posX = (int) p.getX(); final int posY = (int) p.getY(); swingUtils.invokeAndWait(new Runnable() { @Override/* www . ja va 2 s. c o m*/ public void run() { if (visualizationViewer.isShowing() && visualizationViewer.isDisplayable()) { popup.show(visualizationViewer, posX, posY); popup.repaint(); } } }); }