public void ctor_GxwForm() { ctrlMgr = GxwCore_form.new_(this); this.setLayout(null); // use gfui layout this.ctrlMgr.BackColor_set(ColorAdp_.White); // default form backColor to white // this.setUndecorated(true); // remove icon, titleBar, minimize, maximize, close, // border // this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); // JAVA: cannot cancel alt+f4; // set CloseOp to noop, and manually control closing by calling this.CloseForm enableEvents( AWTEvent.MOUSE_EVENT_MASK | AWTEvent.MOUSE_WHEEL_EVENT_MASK | AWTEvent.MOUSE_MOTION_EVENT_MASK); this.addWindowListener(this); GxwBoxListener lnr = new GxwBoxListener(this); this.addComponentListener(lnr); this.addFocusListener(lnr); }
public static GxwCore_form new_(Component control) { GxwCore_form rv = new GxwCore_form(); rv.control = control; return rv; }