title: Java Why I cannot see my Token(JLabel)?
body: <p>Here is the code for my little Monopoly in Java.
  When I run my test program with new Monopoly(); As you can see I create Monopoly in Test, Board and Game in Monopoly, Round in Game. I want to add my token to the board. However, I cannot see the token. I couldn't find the problem can anyone help me? (I even tried debugging) </p>
  
  <pre><code>import javax.swing.ImageIcon;
  import javax.swing.JLabel;
  import javax.swing.JPanel;
  
  public class Board extends JPanel {
      private ImageIcon image;
      private JLabel label;
  
      public Board() {
          image = new ImageIcon("board.jpg");
          setLayout(null);
          label = new JLabel(new ImageIcon("board.jpg"));
          label.setSize(700, 700);
          add(label);
      }
  }
  </code></pre>
  
  <p>.</p>
  
  <pre><code>public class Game {
  
      Player p1;
      Player p2;
  
      public Game(Board b) {
          p1 = new Player("Onurcan", 1);
          p2 = new Player("Baturay", 2);
          Round r = new Round(p1, b);
      }
  
      public Player getP1() {
          return p1;
      }
  
      public Player getP2() {
          return p2;
      }
  }
  </code></pre>
  
  <p>.</p>
  
  <pre><code>public class Monopoly {
  
      public Monopoly() {
          JFrame frame = new JFrame("Monopoly");
          Board b = new Board();
          Game g = new Game(b);
          frame.setSize(1378, 900);
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.add(b);
          frame.setVisible(true);
      }
  }
  </code></pre>
  
  <p>.</p>
  
  <pre><code>public class Round {
  
      private static final int unitChange = 50;
      int posx1 = 650;
      int posy1 = 650;
  
      public Round(Player p, Board b) {
          Dice d = new Dice();
          p.setPosition((p.getPosition() + d.getDice()));
          if (p.getPosition() &gt;= 40) {
              p.setPosition(p.getPosition() - 40);
          }
          changePosition(p, d, b);
      }
  
      public void changePosition(Player p, Dice d, Board b) {
          p.getToken().setSize(25,25);
          p.getToken().setLocation(posx1, posy1);
          b.add(p.getToken());    
      }
      public class Player {
      String pname;
      int balance;
      int pnumber;
      int position;
      JPanel token;
  
      public Player(String name, int pnumber) {
          pname = name;
          balance = 1500;
          position = 0;
          token = new Token(pnumber);
      }
  
      public JPanel getToken() {
          return token;
      }
  
      public int getBalance() {
          return balance;
      }
  
      public void setBalance(int balance) {
          this.balance = balance;
      }
  
      public int getPosition() {
          return position;
      }
  
      public void setPosition(int position) {
          this.position = position;
      }    
  }
  </code></pre>