I can't get the displayPanel visible. The only thing I see is the white colour. 22 candles has to be visible, but it didn't show up
The code I have now is:
Code:
public void init() {
// maak borderlayout aan
this.setLayout( new BorderLayout() );
// maak label op top
labels.add(messagesLabel);
this.add(labels, BorderLayout.NORTH);
labels.setBorder( BorderFactory.createEtchedBorder() );
// maak centrale punt
this.add(displayPanel, BorderLayout.CENTER);
// maak buttons aan bottom
buttons.setBorder( BorderFactory.createEtchedBorder() );
buttons.add(startButton);
buttons.add(eenButton);
buttons.add(tweeButton);
buttons.add(drieButton);
buttons.add(vierButton);
buttons.add(sluitButton);
this.add(buttons, BorderLayout.SOUTH);
startButton.addActionListener(this);
eenButton.addActionListener(this);
tweeButton.addActionListener(this);
drieButton.addActionListener(this);
vierButton.addActionListener(this);
sluitButton.addActionListener(this);
}
Can anyone help me out with this, please?
*edit*
I figured it out, it was a very stupid code I put into it