import javax.swing.JFrame;标签:...,JFrame,java,200,300,frame,public,置顶 From: https://blog.51cto.com/softo/6022980
public class WindowOnTop {
public static void main(String[] args) {
JFrame frame =new JFrame("MyJFrame!");
frame.setBounds(200,200,300,300);
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setAlwaysOnTop(true); //将窗口置顶
}
}