version 1.2 debug

This commit is contained in:
antoine.gagneux 2021-02-22 16:47:13 +01:00
parent b40437e010
commit 51477d449d
4 changed files with 8 additions and 3 deletions

View File

@ -8,6 +8,6 @@
<classpathentry kind="lib" path="lib/okio-2.4.3.jar"/>
<classpathentry kind="lib" path="lib/retrofit-2.7.2.jar"/>
<classpathentry kind="lib" path="lib/converter-gson-2.0.0-beta3.jar"/>
<classpathentry kind="lib" path="lib/tmdbapiv11.jar"/>
<classpathentry kind="lib" path="lib/tmdbapiv12.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

Binary file not shown.

BIN
lib/tmdbapiv12.jar Normal file

Binary file not shown.

View File

@ -87,8 +87,13 @@ public class MaJFrame extends JFrame implements TMDBAPICallBack {
@Override
public void retourAPI(TMDBFilm theMovie,int numCB) {
if (theMovie!=null) {
if (numCB==1) panel_im.setImage(theMovie.getPoster_image());
if (numCB==2) panel_im_2.setImage(theMovie.getPoster_image());
if (numCB==1) {
panel_im.setImage(theMovie.getPoster_image());
}
if (numCB==2) {
panel_im_2.setImage(theMovie.getPoster_image());
}
System.out.println("Affichage : "+numCB+" Film : "+theMovie);
}
this.repaint();
}