Bonjour a tous.
Mon code doit bien mettre 2 min a se lancer.
Voila le fautif:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
public void initZoneText() throws SlickException{
 
		fontTest = new UnicodeFont(new java.awt.Font("DejaVu Serif", java.awt.Font.ROMAN_BASELINE, 20));
		fontTest.addAsciiGlyphs();
		fontTest.addGlyphs(400,600);
		fontTest.getEffects().add(new ColorEffect(java.awt.Color.black));
		fontTest.loadGlyphs();
 
		zoneText = new TextField(gc, fontTest, 30, (gc.getHeight()-gc.getHeight()/20 - etageText), (int) (gc.getWidth()-60), 30);
		zoneText.setBackgroundColor(colorNomPerso.white.darker((float) 0.6));
		zoneText.setText("");
	}
Ca me marque ce message au lencement:
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
Tue Feb 11 09:21:49 CET 2014 INFO:Slick Build #264
Tue Feb 11 09:21:49 CET 2014 INFO:LWJGL Version: 2.9.1
Tue Feb 11 09:21:49 CET 2014 INFO:OriginalDisplayMode: 1920 x 1080 x 32 @0Hz
Tue Feb 11 09:21:49 CET 2014 INFO:TargetDisplayMode: 1920 x 1026 x 0 @0Hz
Tue Feb 11 09:21:49 CET 2014 INFO:Starting display 1920x1026
Tue Feb 11 09:21:49 CET 2014 INFO:Use Java PNG Loader = true
Tue Feb 11 09:21:49 CET 2014 INFO:Controllers not available
Tue Feb 11 09:21:49 CET 2014 INFO:Initialising sounds..
Tue Feb 11 09:21:49 CET 2014 INFO:- Sound works
Tue Feb 11 09:21:49 CET 2014 INFO:- 64 OpenAL source available
Tue Feb 11 09:21:49 CET 2014 INFO:- Sounds source generated
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
loading glyphs -1
glyphs loaded
Je ne comprend pas ce qui fait tout ce bazar.
Je n'ai trouver aucune autre façon de coder ce truc puisque de toute façon une fois lancer il marche très bien.
J'ai passer quelques heures a chercher sur d'autres forums mais j'ai rien trouver mis a part que c'est la "bonne manière de coder".
Sauf que chez moi le programme met un temps infinis (oui 2min c'est très long) à ce lancer.
Merci de votre aide.