Here you can find the source of setJFrameAlwaysOnTop(JFrame frame, boolean newValue)
public static void setJFrameAlwaysOnTop(JFrame frame, boolean newValue)
//package com.java2s; /*/*ww w. j ava 2 s . c o m*/ * MiscUtil.java * miscellaneous utilities * Copyright (C) 2006 by Institute for Systems Biology, * Seattle, Washington, USA. All rights reserved. * * This source code is distributed under the GNU Lesser * General Public License, the text of which is available at: * http://www.gnu.org/copyleft/lesser.html */ import javax.swing.JFrame; public class Main { public static void setJFrameAlwaysOnTop(JFrame frame, boolean newValue) { frame.setAlwaysOnTop(newValue); } }