Bonjour à tout le monde
j'ai un petit code qui ne marche pas trop c'est pour centrer ma fenetre graphique sur l'ecran voila le code
je ne sais pas pourquoi ais ça devait marcher pourtant
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 Dimension screen = Toolkit.getDefaultToolkit().getScreenSize(); frame.setLocation((screen.width - frame.getSize().width)/2,(screen.height - frame.getSize().height)/2);
merci d'avance
Partager