Hi,
Is anyone knows how to pop up a frame.
When my frame is called it is behind the calling window. So I need to minimize calling window and see the frame. However when I call it for the second time it is on top. Is it possible to force my frame to be on top from the first time? Could it be because of Windows XP or Internet Explorer settings? I already tried toFront, show, setVissible etc.
JFrame frame = new JFrame("TA MESSAGE");
//frame.toFront();
//frame.show();
//frame.setLocationRelativeTo(null);
//frame.setVisible(true);
JTextField zone1 = new JTextField();
JTextField slot1 = new JTextField("", 2);
Object[] message = new Object[]
{
"ZONE:", zone1, "SLOT:", slot1
};
Thanks
Is anyone knows how to pop up a frame.
When my frame is called it is behind the calling window. So I need to minimize calling window and see the frame. However when I call it for the second time it is on top. Is it possible to force my frame to be on top from the first time? Could it be because of Windows XP or Internet Explorer settings? I already tried toFront, show, setVissible etc.
JFrame frame = new JFrame("TA MESSAGE");
//frame.toFront();
//frame.show();
//frame.setLocationRelativeTo(null);
//frame.setVisible(true);
JTextField zone1 = new JTextField();
JTextField slot1 = new JTextField("", 2);
Object[] message = new Object[]
{
"ZONE:", zone1, "SLOT:", slot1
};
Thanks