exception sur un lookanfeel
Salut tous, je voudrais que mon application ait le meme style que celle du systeme.
Je fais donc ceci:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
try
{
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
SwingUtilities.updateComponentTreeUI(this);
}
catch (UnsupportedLookAndFeelException ex1)
{
System.err.println("Unsupported LookAndFeel");
}
catch (ClassNotFoundException ex2)
{
System.err.println("LookAndFeel class not found");
}
catch (InstantiationException ex3)
{
System.err.println("Could not load LookAndFeel");
} |
Mais ca me sort un exception :
Code:
1 2
|
Unhandled exception type IllegalAccessException |
Ai-je oublier d'importer une librairie ou autre?
Je suis sous eclipse, merci de votre aide.