Interface of

  • Window .dispose () // release (closed) window
  • this.setResizeable (false); // screen size is not adjustable
  • Jpanel or Jframe add keyboard listeners invalid:
    impossible to obtain because there is no keyboard monitor screen focus will need to monitor the controls to get the screen to focus, as follows:
控件名.setFocusable(true);  /*注意要写setVisible(true)后面才行。*/
Published 41 original articles · won praise 6 · views 6472

Guess you like

Origin blog.csdn.net/qq_42712280/article/details/104517274