Create a class named Celda which extends JLabel and is intended to be in the same position as its attribute JLabel etiqueta
public class Celda extends JLabel{ public JLabel etiqueta; public Celda(int x, int y){ this.etiqueta = new JLabel(); this.etiqueta.setBounds(x, y, Game.SIZE, Game.SIZE); this.etiqueta.setIcon(null); } }