/**
     * Configure the shell.
     * @param newShell
     */
    @Override
    protected void configureShell(Shell newShell) {
        super.configureShell(newShell);
        newShell.addListener(SWT.Close, new Listener() { 
            public void handleEvent(Event event) {
                System.exit(0);
            }

        });
    }

创建Window后修改重写的configureShell方法

相关文章:

  • 2021-12-02
  • 2021-08-26
  • 2021-07-30
  • 2022-12-23
  • 2022-02-12
  • 2021-12-20
  • 2021-06-14
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-08
  • 2021-07-08
  • 2021-09-11
  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
相关资源
相似解决方案