jOptionPane dont show on top windows. Java 1.4

193 views Asked by At

jOptionPane dont show on top windows.

I've read that using

JFrame frmOpt = new JFrame();
frmOpt.setVisible(true);
frmOpt.setLocation(100, 100);
frmOpt.setAlwaysOnTop(true);

should be enough, but the problems is that I'm using Java 1.4 and 'setAlwaysOnTop' does not exists.

so....is there a way to solve this situation?

thanks in advance.

EDIT: Here is what I'm doing:

           JFrame frmOpt = new JFrame();
           frmOpt.setVisible(false);
           response = JOptionPane.showOptionDialog(frmOpt,message,mens, 0,JOptionPane.OK_CANCEL_OPTION,null,options,null);

First I create a JFrame, then I create a new JOptionFrame setting the JFrame.

And it still shows at the back. Notice I do not use setAlwaysOnTop because of Java 1.4

0

There are 0 answers