Example usage for javax.swing JPopupMenu repaint

List of usage examples for javax.swing JPopupMenu repaint

Introduction

In this page you can find the example usage for javax.swing JPopupMenu repaint.

Prototype

public void repaint() 

Source Link

Document

Repaints this component.

Usage

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();
            }
        }
    });
}