Example usage for java.awt IllegalComponentStateException printStackTrace

List of usage examples for java.awt IllegalComponentStateException printStackTrace

Introduction

In this page you can find the example usage for java.awt IllegalComponentStateException printStackTrace.

Prototype

public void printStackTrace() 

Source Link

Document

Prints this throwable and its backtrace to the standard error stream.

Usage

From source file:org.omegat.gui.properties.SegmentPropertiesArea.java

void showContextMenu(Point p) {
    JPopupMenu menu = new JPopupMenu();
    populateLocalContextMenuOptions(menu, p);
    // populateGlobalContextMenuOptions(menu);
    try {//from   w  ww  .j a  v a2  s.  c o m
        menu.show(scrollPane, p.x, p.y);
    } catch (IllegalComponentStateException ignore) {
        ignore.printStackTrace();
    }
}