Theme template - Rasmus1989/Projektarebete_Grupp2 GitHub Wiki

 package se.mah.k3;
 import javax.swing.JPanel;

   public class DummyTheme extends JPanel implements ThemeInterface {
        FirebaseData fbData;
     	JLabel myLabel;

   public DummyTheme(){
	setLayout(null);

          	myLabel = new JLabel("New label");
	myLabel.setBounds(161, 224, 207, 16);
	myLabel.setText("The question will appear here!");
	add(myLabel);
    }

    @Override
public void updateData(FirebaseData data) {
	// TODO Auto-generated method stub
	fbData = data;
	myLabel.setText(fbData.getQuestion());
	repaint();
}
}