Generation

class from descriptionSun, 18 Jun 2023

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); } }

Questions about programming?Chat with your personal AI assistant