Search in sources :

Example 1 with AWindowListener

use of org.compiere.apps.AWindowListener in project adempiere by adempiere.

the class Viewer method cmd_customize.

/**
	 * 	Call Customize
	 */
private void cmd_customize() {
    AWindow win = new AWindow(getGraphicsConfiguration());
    //	forwards Window Events
    new AWindowListener(win, this);
    //	hardcoded
    int AD_Window_ID = 240;
    int AD_PrintFormat_ID = m_reportEngine.getPrintFormat().get_ID();
    boolean loadedOK = win.initWindow(AD_Window_ID, MQuery.getEqualQuery("AD_PrintFormat_ID", AD_PrintFormat_ID));
    if (loadedOK) {
        AEnv.addToWindowManager(win);
        AEnv.showCenterScreen(win);
    }
//	see windowStateChanged for applying change
}
Also used : AWindow(org.compiere.apps.AWindow) AWindowListener(org.compiere.apps.AWindowListener) Point(java.awt.Point)

Aggregations

Point (java.awt.Point)1 AWindow (org.compiere.apps.AWindow)1 AWindowListener (org.compiere.apps.AWindowListener)1