Salut tous, je voudrais que mon application ait le meme style que celle du systeme.
Je fais donc ceci:
Mais ca me sort un exception :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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"); }
Ai-je oublier d'importer une librairie ou autre?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 Unhandled exception type IllegalAccessException
Je suis sous eclipse, merci de votre aide.
Partager