View Single Post
  #1 (permalink)  
Old 07-17-2007, 06:33 PM
romina romina is offline
Member
 
Join Date: Jul 2007
Posts: 26
romina is on a distinguished road
Problem with JOptionPane.showInputDialog()
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?

Code:
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
Reply With Quote
Sponsored Links