* Restored window size not correct if open window maximized is turn on.
This commit is contained in:
parent
5e52d7407b
commit
947138c8eb
|
@ -637,6 +637,7 @@ public final class AEnv
|
||||||
if (!frame.initWindow(s_workflow_Window_ID, query))
|
if (!frame.initWindow(s_workflow_Window_ID, query))
|
||||||
return;
|
return;
|
||||||
if (Ini.isPropertyBool(Ini.P_OPEN_WINDOW_MAXIMIZED) ) {
|
if (Ini.isPropertyBool(Ini.P_OPEN_WINDOW_MAXIMIZED) ) {
|
||||||
|
frame.pack();
|
||||||
frame.setExtendedState(Frame.MAXIMIZED_BOTH);
|
frame.setExtendedState(Frame.MAXIMIZED_BOTH);
|
||||||
frame.setVisible(true);
|
frame.setVisible(true);
|
||||||
frame.toFront();
|
frame.toFront();
|
||||||
|
|
|
@ -231,18 +231,18 @@ public class AMenuStartItem extends Thread implements ActionListener
|
||||||
return;
|
return;
|
||||||
|
|
||||||
SwingUtilities.invokeLater(m_updatePB); // 2
|
SwingUtilities.invokeLater(m_updatePB); // 2
|
||||||
|
frame.pack();
|
||||||
if (Ini.isPropertyBool(Ini.P_OPEN_WINDOW_MAXIMIZED) )
|
if (Ini.isPropertyBool(Ini.P_OPEN_WINDOW_MAXIMIZED) )
|
||||||
frame.setExtendedState(Frame.MAXIMIZED_BOTH);
|
frame.setExtendedState(Frame.MAXIMIZED_BOTH);
|
||||||
else
|
|
||||||
frame.pack();
|
|
||||||
|
|
||||||
// Center the window
|
// Center the window
|
||||||
SwingUtilities.invokeLater(m_updatePB); // 3
|
SwingUtilities.invokeLater(m_updatePB); // 3
|
||||||
if (Ini.isPropertyBool(Ini.P_OPEN_WINDOW_MAXIMIZED) )
|
if (Ini.isPropertyBool(Ini.P_OPEN_WINDOW_MAXIMIZED) ) {
|
||||||
frame.setVisible(true);
|
frame.setVisible(true);
|
||||||
else
|
frame.toFront();
|
||||||
|
} else
|
||||||
AEnv.showCenterScreen(frame);
|
AEnv.showCenterScreen(frame);
|
||||||
frame.toFront();
|
|
||||||
m_menu.getWindowManager().add(frame);
|
m_menu.getWindowManager().add(frame);
|
||||||
|
|
||||||
// if (wfPanel.isVisible())
|
// if (wfPanel.isVisible())
|
||||||
|
@ -329,13 +329,15 @@ public class AMenuStartItem extends Thread implements ActionListener
|
||||||
SwingUtilities.invokeLater(m_updatePB); // 1
|
SwingUtilities.invokeLater(m_updatePB); // 1
|
||||||
ff.openForm(AD_Form_ID);
|
ff.openForm(AD_Form_ID);
|
||||||
SwingUtilities.invokeLater(m_updatePB); // 2
|
SwingUtilities.invokeLater(m_updatePB); // 2
|
||||||
if (Ini.isPropertyBool(Ini.P_OPEN_WINDOW_MAXIMIZED) == false)
|
|
||||||
ff.pack();
|
|
||||||
// Center the window
|
// Center the window
|
||||||
SwingUtilities.invokeLater(m_updatePB); // 3
|
SwingUtilities.invokeLater(m_updatePB); // 3
|
||||||
if (Ini.isPropertyBool(Ini.P_OPEN_WINDOW_MAXIMIZED) )
|
if (Ini.isPropertyBool(Ini.P_OPEN_WINDOW_MAXIMIZED) ) {
|
||||||
|
ff.pack();
|
||||||
ff.setExtendedState(Frame.MAXIMIZED_BOTH);
|
ff.setExtendedState(Frame.MAXIMIZED_BOTH);
|
||||||
else
|
ff.setVisible(true);
|
||||||
|
ff.toFront();
|
||||||
|
} else
|
||||||
AEnv.showCenterScreen(ff);
|
AEnv.showCenterScreen(ff);
|
||||||
} // startForm
|
} // startForm
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue