just thought of a solution for the age old java problem with message boxes / dialogs / input .
It's funny when you google it you'll find like a million people asking for a solution but none or very few that gives an answer that works.
this is probly not a new solution but i came up with this yesterday and thought i would "share".
dunno why the java developers hasnt made a always on top function for this since there seems to be a very high demand for it.
this hax will hopefully work at all times.
hope google will find this thread, i searched for a solution yesterday and found none? which is surprising and im a pro googler too.
import javax.swing.*;
public class main{
public static void main(String args[]){
JFrame j=new JFrame();
j.setAlwaysOnTop(true);
j.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
j.setVisible(true);
j.setVisible(false);
JOptionPane.showMessageDialog(j,"hi");
System.exit(0);
}
}