Posted By

aetbaar_444 on 10/08/10


Tagged


Versions (?)

Bildschirm Größe


 / Published in: Java
 

  1. // Fenster zentrieren
  2. Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
  3. this.setLocation((dim.width - this.getSize().width) / 2,
  4. (dim.height - this.getSize().height) / 2);

Report this snippet  

You need to login to post a comment.