JFileChooser chooser = new JFileChooser(); JDialog dialog=new JDialog(); dialog.setAlwaysOnTop(true); /*System.out.println(\"is always on top?\"+dialog.isAlwaysOnTop