When I use
JOptionPane.showInputDialog() the input dialog pops up behind any other windows on the screen at the time.
Anyone know how to fix that?
String list[] = {"100","400","900","1600"};
String value = null;
while(value == null)
{
value = (String)JOptionPane.showInputDialog(null,"How many cells do you want?",
"John Conway's Game Of Life",JOptionPane.INFORMATION_MESSAGE,null,list,list[1]);
if (value == null)
JOptionPane.showMessageDialog(null,"You must choose a number.",
"ERROR",JOptionPane.ERROR_MESSAGE);
}
This is the section of code that the input dialog is in. Do you think that it could possibly have something to do with the IDE?
Thanks