| |||||
| Auteur | Sujet : [Java] Le topic-passage-obligé pour débutants ! |
|---|---|
masklinn í dag viðrar vel til loftárása | Reprise du message précédent :
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Publicité | Posté le 16-12-2008 à 19:23:09 ![]() ![]() |
koskoz They see me trollin they hatin |
--------------- |
souk Tourist |
|
tomsoft | non non je crache pas dessus hein, je me demande juste |
tomsoft | j'en parlerais au groupe, on filera ptet les sources a la fin du projet, une fois que ce sera rendu |
Jubijub Parce que je le VD bien | je plussois Souk : il faut comprendre qu'en Java, tout ce qui concerne Swing tourne dans un thread dedie. Donc si t'as des opérations longues a faire (IO disque, réseau, IA) faut impérativement les faire dans des thread séparés. Sinon ton UI va ramer parce que tu empeches swing de se rafraîchir. T'as des méthodes pour synchroniser ces threads entre eux (swingworker par ex)
--------------- Jubi Photos : Flickr - 500px |
koskoz They see me trollin they hatin | Merci Masklin, j'ai corrigé mon warning grâce aux generics.
--------------- |
the real moins moins | ben t'en as pas besoin, ça compile et ça marche très bien sans.
--------------- Hey toi, tu veux acheter des minifigurines Lego, non ? |
Publicité | Posté le 17-12-2008 à 00:17:51 ![]() ![]() |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
koskoz They see me trollin they hatin |
--------------- |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
the real moins moins |
--------------- Hey toi, tu veux acheter des minifigurines Lego, non ? |
koskoz They see me trollin they hatin | Salut tout le monde,
--------------- |
masklinn í dag viðrar vel til loftárása |
On peut savoir pourquoi tu utilises des vectors (sans passer par les méthodes rétrofittées de Collection en plus), et surtout pourquoi tu réimplémentes un tri alors que c'est inclus dans la lib edit: et accessoirement,
Message édité par masklinn le 05-01-2009 à 14:14:22 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
koskoz They see me trollin they hatin | J'implémente les vecteurs parce que c'est ce qui m'est demandé de faire et ce que j'ai vu en cours --------------- |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
koskoz They see me trollin they hatin | Bon, j'ai essayé de faire ça, mais sa me pète deux warnings ("unchecked call to compare" entre autre) et j'ai un NullPointerException lors de l'exécution.
--------------- |
koskoz They see me trollin they hatin | Pour comparer selon la référence, c'est bon, j'ai réussi en redéfinissant compareTo dans ma classe Livre, puis en faisant simplement :
--------------- |
masklinn í dag viðrar vel til loftárása |
Si tu dois juste comparer des strings entre eux, c'est built-in Message édité par masklinn le 05-01-2009 à 17:33:02 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
koskoz They see me trollin they hatin | Et quand tu dis implémenter une série de comparateur, c'est par exemple définir deux méthodes dans ma classe livre :
--------------- |
masklinn í dag viðrar vel til loftárása |
Message cité 1 fois Message édité par masklinn le 05-01-2009 à 17:53:13 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
koskoz They see me trollin they hatin |
--------------- |
koskoz They see me trollin they hatin | Bon, jvais paraître con, mais vu que se ne sera pas la première fois, je me lance.
--------------- |
tomsoft | Comparator doit etre une interface, ya des methodes definies à surcharger |
the real moins moins | ha ouais qd meme. en meme temps le message d'erreur dit clairement ce qui va pas hein. --------------- Hey toi, tu veux acheter des minifigurines Lego, non ? |
koskoz They see me trollin they hatin |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Jubijub Parce que je le VD bien |
--------------- Jubi Photos : Flickr - 500px |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Jubijub Parce que je le VD bien | donc il lui faut 2 Comparator...
--------------- Jubi Photos : Flickr - 500px |
masklinn í dag viðrar vel til loftárása |
Message cité 1 fois Message édité par masklinn le 06-01-2009 à 20:38:57 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
koskoz They see me trollin they hatin |
--------------- |
masklinn í dag viðrar vel til loftárása | Tu utilise des collections génériques, il te faut donc un comparateur générique au lieu d'un comparateur 1.4:
Message cité 1 fois Message édité par masklinn le 07-01-2009 à 12:13:53 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
koskoz They see me trollin they hatin |
--------------- |
koskoz They see me trollin they hatin | Petit question,
--------------- |
tomsoft | si c'est pour apprendre, re-ecris tout |
Jubijub Parce que je le VD bien | le pb de swing c'est le positionnement....pour obtenir ce que tu veux, va falloir mettre les mains dans un gestionnaire de Layout...Et GridBagLayout, ça irite un poil au début...
--------------- Jubi Photos : Flickr - 500px |
Jubijub Parce que je le VD bien |
Jubijub Parce que je le VD bien |
--------------- Jubi Photos : Flickr - 500px |
Publicité | Posté le ![]() ![]() |






