Example usage for javax.swing JFrame toFront

List of usage examples for javax.swing JFrame toFront

Introduction

In this page you can find the example usage for javax.swing JFrame toFront.

Prototype

public void toFront() 

Source Link

Document

If this Window is visible, brings this Window to the front and may make it the focused Window.

Usage

From source file:org.omegat.gui.issues.IssuesPanelController.java

void jumpToSelectedIssue() {
    getSelectedIssue().map(IIssue::getSegmentNumber).ifPresent(i -> {
        Core.getEditor().gotoEntry(i);//ww  w  . j  a v a  2 s.c o  m
        JFrame mwf = Core.getMainWindow().getApplicationFrame();
        mwf.setState(JFrame.NORMAL);
        mwf.toFront();
    });
}