Java JFrame toFront(JFrame frame)

Here you can find the source of toFront(JFrame frame)

Description

to Front

License

Open Source License

Declaration

public static void toFront(JFrame frame) 

Method Source Code

//package com.java2s;
import java.awt.Frame;
import javax.swing.JFrame;

public class Main {
    public static void toFront(JFrame frame) {
        if (frame.getExtendedState() >= Frame.MAXIMIZED_BOTH) {
            frame.setExtendedState(Frame.MAXIMIZED_BOTH);
        } else if (frame.getExtendedState() > Frame.NORMAL) {
            frame.setExtendedState(Frame.NORMAL);
        }//from  www .  j  a v  a2s  .c  o m
        frame.setVisible(true);
    }
}

Related

  1. staggerOpenedFrames(List frames)
  2. storePrefsFrame(Preferences node, JFrame frame)
  3. tellUserToChoose(JFrame jFrame)
  4. terminarPrograma(JFrame f)
  5. toFront(final JFrame window)
  6. toFrontHack(JFrame theParent, JFrame theFrame)
  7. toggleFrame(JFrame frame)
  8. toggleOsXFullScreen(JFrame frame)
  9. unpackArchive(URL url, File targetDir, JFrame frame, ProgressMonitor progressMonitor)