title: Java Quiz with GUI
body: <p>Hey there I am trying to build a quiz program for my English class Christmas party. It has a GUI and all but this is not important there. I have three buttons each bearing the tag of either Answer A, B , or C.
  I have a Button Go that fills in the first Question from an array. All the other Questions are stores in an array as well but each in a different one. They are named frage 1-10. They contains the Question three possible answers and a string that tells the program which one is the correct one. I need a service called nextQuestion that will fill in the next array into the corresponding fields. I struggle with this service as I can not think of any way to do so. I will post my source code here in the hope that you can help me with this. As I am German the code contains multi language parts. If you are struggling to understand do not hesitate to ask I will try my best to explain my scrubby code.
  I thank you in advance for your support.</p>
  
  <pre><code>import sum.komponenten.*;
  import sum.werkzeuge.*;
  import sum.ereignis.*;
  
  public class DasQuiz extends EBAnwendung
  {
      // Objekte
  
  private Etikett hatEtikettHeader;
  
  private Knopf hatKnopfAnswerA;
  
  private Knopf hatKnopfExit;
  
  private Knopf hatKnopfAnswerB;
  
  private Knopf hatKnopfAnswerC;
  
  private Zeichenbereich hatZeichenbereichQuestion;
  
  private Etikett hatEtikett2;
  
  private Etikett hatEtikett3;
  
  private Etikett hatEtikett4;
  
  private Etikett hatEtikettTeamOne;
  
  private Etikett hatEtikettTemaTwo;
  
  private Etikett hatEtikettPunkte1;
  
  private Etikett hatEtikettPunkte2;
  
  private Knopf hatKnopfGo;
  
  private String[] frage1 = new String[]{"What is traditionally hidden in a Christmas pudding?", "A Coin", "A Watch", "A pair of dice", "A"};
  
  private String[] frage2 = new String[]{"How many days are there on a traditional advent calendar?", "12", "24", "30", "B"};
  
  private String[] frage3 = new String[]{"____pull Santa's sleigh", "Guniea Pigs", "Cats", "Reindeers", "C"};
  
  private String[] frage4 = new String[]{"According to the song, how many days of Christmas are there?", "11", "12", "13", "B"};
  
  private String[] frage5 = new String[]{"Why do we shorten Christmas to Xmas?", "X is the first letter of the Greek word for Christ", "X looks like a snowflake", "X looks like a star", "A"};
  
  private String[] frage6 = new String[]{"What is the last day of Christmas called?", "Advent", "Twelfth Night", "Boxing Day", "B"};
  
  private String[] frage7 = new String[]{"Are used to make traditional Christingles", "Peaches", "Pears", "Oranges", "C"};
  
  private String[] frage8 = new String[]{"Charles _____ wrote the book A Christmas Carol", "Dahl", "Rowling", "Dickens", "C"};  
  
  private String[] frage9 = new String[]{"Which royal couple started off the fashion for Christmas trees in Britain?", "King Henry adn Anne Boleyn", "Queen Victoria adn Prince Albert", "Prince William and kate Middleton", "B"};
  
  private String[] frage10 = new String[]{"Which of these plants is traditionally connected with Christmas?", "Daisy", "Daffodil", "Poinsettia", "C"};
  
  StringBuilder builder = new StringBuilder();
  
  
  // Attribute
  /**
   * Konstruktor
   */
  public DasQuiz()
  {
      //Initialisierung der Oberklasse
      super(1255, 876);
  
      hatEtikettHeader = new Etikett(468, 57, 225, 25, "Christmas Quiz LK English by Marc Blaesche");
      // Ausrichtung
      hatEtikettHeader.setzeAusrichtung(Ausrichtung.LINKS);
      hatKnopfAnswerA = new Knopf(289, 472, 100, 25, "Answer A");
      hatKnopfAnswerA.setzeBearbeiterGeklickt("hatSchalterAnswerAGeklickt");
      hatKnopfExit = new Knopf(1078, 810, 100, 25, "Exit");
      hatKnopfExit.setzeBearbeiterGeklickt("hatKnopfExitGeklickt");
      hatKnopfAnswerB = new Knopf(514, 472, 100, 25, "Answer B");
      hatKnopfAnswerB.setzeBearbeiterGeklickt("hatSchalterAnswerBGeklickt");
      hatKnopfGo = new Knopf (514, 397, 100, 25, "GOGO");
      hatKnopfGo.setzeBearbeiterGeklickt("hatKnopfGoGeklickt");
      hatKnopfAnswerC = new Knopf(755, 472, 100, 25, "Answer C");
      hatKnopfAnswerC.setzeBearbeiterGeklickt("hatSchalterAnswerCGeklickt");
      hatZeichenbereichQuestion = new Zeichenbereich(288, 143, 566, 143, "");
      hatEtikett2 = new Etikett(289, 300, 566, 25, "");
      // Ausrichtung
      hatEtikett2.setzeAusrichtung(Ausrichtung.LINKS);
      hatEtikett3 = new Etikett(289, 340, 566, 25, "");
      // Ausrichtung
      hatEtikett3.setzeAusrichtung(Ausrichtung.LINKS);
      hatEtikett4 = new Etikett(289, 380, 566, 25, "");
      // Ausrichtung
      hatEtikett4.setzeAusrichtung(Ausrichtung.LINKS);
      hatEtikettTeamOne = new Etikett(72, 585, 100, 25, "Team One");
      // Ausrichtung
      hatEtikettTeamOne.setzeAusrichtung(Ausrichtung.LINKS);
      hatEtikettTemaTwo = new Etikett(356, 586, 100, 25, "Tema Two");
      // Ausrichtung
      hatEtikettTemaTwo.setzeAusrichtung(Ausrichtung.LINKS);
      hatEtikettPunkte1 = new Etikett(72, 671, 100, 141, "");
      // Ausrichtung
      hatEtikettPunkte1.setzeAusrichtung(Ausrichtung.LINKS);
      hatEtikettPunkte2 = new Etikett(355, 669, 96, 141, "");
      // Ausrichtung
      hatEtikettPunkte2.setzeAusrichtung(Ausrichtung.LINKS);
  }
  
  
  public void hatKnopfAnswerAGeklickt()
  {
  
  }
  
  public void hatKnopfExitGeklickt()
  {
      System.exit(0);
  }
  
  
  public void hatKnopfAnswerBGeklickt()
  {
      //    Schreiben Sie hier den Text ihres Dienstes
  }
  
  public void hatKnopfAnswerCGeklickt()
  {
      //    Schreiben Sie hier den Text ihres Dienstes
  }
  
      public void hatKnopfGoGeklickt()
  {
      hatZeichenbereichQuestion.setzeInhalt(frage1[0]);
      hatEtikett2.setzeInhalt(frage1[1]);
      hatEtikett3.setzeInhalt(frage1[2]);
      hatEtikett4.setzeInhalt(frage1[3]);
  }
  
  public void nextQuestion()
  {
  
  }
  </code></pre>
  
  <p>}</p>