/** Displays Instruction screen. */
 private void displayInstructions() {
   // true
   back.setVisible(true);
   InstructionsBigText.setVisible(true);
   InstructionsText.setVisible(true);
   // false
   StarshipBattleTextStart.setVisible(false);
   BackgroundShip1.setVisible(false);
   BackgroundShip2.setVisible(false);
   NewgameText.setVisible(false);
   InstructionsSmallText.setVisible(false);
   HighscoreText.setVisible(false);
   ExitGameText.setVisible(false);
 }
 /** Displays Credit screen. */
 private void displayCredits() {
   // true
   Credits.setVisible(true);
   CreditText.setVisible(true);
   // false
   StarshipBattleTextStart.setVisible(false);
   BackgroundShip1.setVisible(false);
   BackgroundShip2.setVisible(false);
   NewgameText.setVisible(false);
   InstructionsSmallText.setVisible(false);
   HighscoreText.setVisible(false);
   ExitGameText.setVisible(false);
   back.setVisible(false);
   currentScreen = 12;
 }
  /** Displays startscreen. */
  private void displayStart() {

    // true
    StarshipBattleTextStart.setVisible(true);
    BackgroundShip1.setVisible(true);
    BackgroundShip2.setVisible(true);
    NewgameText.setVisible(true);
    InstructionsSmallText.setVisible(true);
    HighscoreText.setVisible(true);
    ExitGameText.setVisible(true);
    winGame.setVisible(false);
    loseGame.setVisible(false);
    mainMenu.setVisible(false);
    // false
    whatIsHit.setVisible(false);
    whatIsMiss.setVisible(false);
    gameErrors.setVisible(false);
    highScore.setVisible(false);
    ship1.setVisible(false);
    ship2.setVisible(false);
    ship3.setVisible(false);
    ship4.setVisible(false);
    ship5.setVisible(false);
    PlayerVsComp.setVisible(false);
    PlayerVsPlayer.setVisible(false);
    TwoPlayerVsTwoPlayer.setVisible(false);
    back.setVisible(false);
    InstructionsBigText.setVisible(false);
    InstructionsText.setVisible(false);
    HighscoreBigText.setVisible(false);
    BigInput.setVisible(false);
    Credits.setVisible(false);
    board1Label.setVisible(false);
    board2Label.setVisible(false);
    StarshipBattleTextLabel.setVisible(false);
    enemyBoardText.setVisible(false);
    myBoardText.setVisible(false);
    returnToMain.setVisible(false);
    ip.setVisible(false);
    serverName.setVisible(false);
    password.setVisible(false);
    newPassword.setVisible(false);
    verifyPassword.setVisible(false);
  }
 /** Displays New game Screen */
 private void displayNewGame() {
   // true
   PlayerVsComp.setVisible(true);
   PlayerVsPlayer.setVisible(true);
   TwoPlayerVsTwoPlayer.setVisible(true);
   back.setVisible(true);
   // false
   gameErrors.setVisible(false);
   StarshipBattleTextStart.setVisible(false);
   BackgroundShip1.setVisible(false);
   BackgroundShip2.setVisible(false);
   NewgameText.setVisible(false);
   InstructionsSmallText.setVisible(false);
   HighscoreText.setVisible(false);
   ExitGameText.setVisible(false);
   Difficulty.setVisible(false);
   Easy.setVisible(false);
   Medium.setVisible(false);
   Hard.setVisible(false);
   NetworkMode.setVisible(false);
   Online.setVisible(false);
   Lan.setVisible(false);
 }