Google
 

UIDefaults defaults = UIManager.getDefaults (); defaults.put ("OptionPane.yesButtonText", "Computer plays first"); defaults.put ("OptionPane.noButtonText", "Human plays first"); defaults.put ("OptionPane.cancelButtonText", "Not now dear, I have a headache"); int x = JOptionPane.showConfirmDialog (null, null, null, JOptionPane.YES_NO_CANCEL_OPTION); switch (x) { case JOptionPane.YES_OPTION: System.out.println("Computer first"); break; case JOptionPane.NO_OPTION: System.out.println("Human first"); break; case JOptionPane.CANCEL_OPTION: System.out.println("Not now, dear"); break; }


PartenaireS AnouaR-Ex

Top Maroc Annuaire des sites marocains Annuaire des sites Top Vacances Top Algérie top tunisie  - ELmaroc.Net This website was created for free with Own-Free-Website.com. Would you also like to have your own website?
Sign up for free