Quelques mots de remerciements seront grandement appréciés. Ajouter un commentaire
119 internautes nous ont dit merci ce mois-ci
/** * Tente d'appliquer un look and feel en le recherchant par son nom dans la * liste des look and feel installes. * * Ne fait rien si le aucun des look and feel installes ne porte le nom * fourni. * * @param nom * nom du look and feel a appliquer * @throws UnsupportedLookAndFeelException * @throws IllegalAccessException * @throws InstantiationException * @throws ClassNotFoundException */ public static void setLookAndFeelParNom(String nom) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException { LookAndFeelInfo[] informationsLnf = UIManager.getInstalledLookAndFeels(); String nomLnf; for (LookAndFeelInfo informationLnf : informationsLnf) { nomLnf = informationLnf.getName(); if (nomLnf.equals(nom)) { String classeLnf = informationLnf.getClassName(); UIManager.setLookAndFeel(classeLnf); break; } } }
Les membres obtiennent plus de réponses que les utilisateurs anonymes.
Le fait d'être membre vous permet d'avoir un suivi détaillé de vos demandes et codes sources.
Le fait d'être membre vous permet d'avoir des options supplémentaires.