Advertisement
Tecnelm

Untitled

Apr 1st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.48 KB | None | 0 0
  1. public enum ImageID {
  2.    
  3.     Milieu(1),
  4.     Horizontal(2),
  5.     Vertival(3),
  6.     FBas(4),
  7.     FDroite(5),
  8.     FGauche(6),
  9.     FHaut(7);
  10.    
  11.     //int id ;
  12.    
  13.     ImageID(int id)
  14.     {
  15.         getId(id);
  16.     }
  17.    
  18.     private int getId(int id)
  19.     {
  20.         return id;
  21.     }
  22.  
  23. }
  24. public void placeExp (int id ,int x,int y)
  25.     {
  26.         JLabel j = new JLabel(iL[id]);
  27.         image.add(j);
  28.         j.setBounds(x*taille, y*taille, taille, taille);
  29.         PanelManager.getInstance().getJPanel(0).add(j);
  30.        
  31.     }
  32. placeExp(ImageID.Horizontal,lastnbx,lastnby);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement