Java Code Examples for javax.swing.JFrame.ICONIFIED

The following are Jave code examples for showing how to use ICONIFIED of the javax.swing.JFrame class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: ripme   File: MainWindow.java   View Source Code Vote up 5 votes
private void toggleTrayClick() {
    if (mainFrame.getExtendedState() == JFrame.ICONIFIED
            || !mainFrame.isActive()
            || !mainFrame.isVisible()) {
        mainFrame.setVisible(true);
        mainFrame.setAlwaysOnTop(true);
        mainFrame.setAlwaysOnTop(false);
        trayMenuMain.setLabel("Hide");
    } else {
        mainFrame.setVisible(false);
        trayMenuMain.setLabel("Show");
    }
}