O
Oliver Hirschi
Hi
How can I programatically take my java-application under MacOSX to
front?
I have a JFrame and I think I tested all kinds of methods to do this:
"toFront, setVisible, invalidate, validate, setenable, etc."
Under Win it works well as follow:
------------------------------------
// disable and minimize Frame
this.setVisible(false);
m_oApp.getFrame().setEnabled(false);
m_oApp.getFrame().setExtendedState(Frame.ICONIFIED);
// SWITCH
SwitchSend oSwitchSend = new SwitchSend(m_oApp, m_oJob);
oSwitchSend.pmm_CallSwitch(m_oObPubForm_Layout, m_oObPubForm_Extract);
// enable and reactivate Frame
m_oApp.getFrame().setExtendedState(Frame.NORMAL);
m_oApp.getFrame().setEnabled(true);
this.setVisible(true);
this.requestFocus();
How can I programatically take my java-application under MacOSX to
front?
I have a JFrame and I think I tested all kinds of methods to do this:
"toFront, setVisible, invalidate, validate, setenable, etc."
Under Win it works well as follow:
------------------------------------
// disable and minimize Frame
this.setVisible(false);
m_oApp.getFrame().setEnabled(false);
m_oApp.getFrame().setExtendedState(Frame.ICONIFIED);
// SWITCH
SwitchSend oSwitchSend = new SwitchSend(m_oApp, m_oJob);
oSwitchSend.pmm_CallSwitch(m_oObPubForm_Layout, m_oObPubForm_Extract);
// enable and reactivate Frame
m_oApp.getFrame().setExtendedState(Frame.NORMAL);
m_oApp.getFrame().setEnabled(true);
this.setVisible(true);
this.requestFocus();