package game; import javax.swing.JLabel; public class GameStatus extends JLabel { private Game parent; public GameStatus(Game parent) { super(); this.parent = parent; this.setText("My cool game status"); } }