java, probleme de setlookandfeel

Moderator: Mod

java, probleme de setlookandfeel

Postby HUG0X » Tue Oct 06, 2009 5:06 pm

Voila, j'explique mon problème:
voila mon code, il est censé m'afficher un style de fenêtre différent, mais cela ne marche pas..


[code:1:2ca2ffa74f]public fenetre(String titre) {
fenetre = new JFrame(titre);
Container contenu = fenetre.getContentPane();
try {
UIManager.setLookAndFeel(
UIManager.getCrossPlatformLookAndFeelClassName());
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (InstantiationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalAccessException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (UnsupportedLookAndFeelException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
[/code:1:2ca2ffa74f]

Merci d'avance.
User avatar
HUG0X
Projets
 
Posts: 106
Joined: Wed Feb 04, 2009 2:33 pm
Location: Devant mon pc

Return to Java

Who is online

Users browsing this forum: No registered users and 0 guests

cron