package edu.oswego.tiltandtumble.screens;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.ui.Button;
import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
import com.badlogic.gdx.scenes.scene2d.ui.Window;
import com.badlogic.gdx.scenes.scene2d.utils.ChangeListener;

import edu.oswego.tiltandtumble.TiltAndTumble;

public class HighScoresScreen extends AbstractScreen {

	public HighScoresScreen(final TiltAndTumble game){
		super(game);
	}

	@Override
	public void show() {
        Gdx.input.setInputProcessor(stage);

		Window table = new Window("\nHigh Scores", skin);
		table.setFillParent(true);
		table.setModal(true);
		table.setMovable(false);
        stage.addActor(table);

        table.row();
        Button back = new TextButton("Go Back", skin);
        table.add(back);

        back.addListener(new ChangeListener() {
            @Override
            public void changed(ChangeEvent event, Actor actor) {
                game.showPreviousScreen();
            }
        });
	}
}

@@ -327,16 +327,47 @@
 tener;%0A%0A
+//import java.util.SortedSet;%0A%0A
 import e
@@ -404,16 +404,56 @@
 dTumble;
+%0Aimport edu.oswego.tiltandtumble.data.*;
 %0A%0Apublic
@@ -500,16 +500,25 @@
 Screen %7B
+%0A%09%0A%09%0A    
 %0A%0A%09publi
@@ -823,17 +823,1477 @@
 table);%0A
+        %0A        StringBuilder scoreString = new StringBuilder();%0A        HighScores score = game.getHighScores();%0A        /*SortedSet%3CHighScore%3E temp = score.getHighScore();%0A        temp.add(new HighScore(%22BG%22,1000,100));%0A        temp.add(new HighScore(%22BG%22,900,100));%0A        temp.add(new HighScore(%22BG%22,800,100));%0A        temp.add(new HighScore(%22BG%22,700,100));%0A        temp.add(new HighScore(%22BG%22,600,100));%0A        temp.add(new HighScore(%22BG%22,500,100));%0A        temp.add(new HighScore(%22BG%22,400,100));%0A        temp.add(new HighScore(%22BG%22,300,100));%0A        temp.add(new HighScore(%22BG%22,200,100));%0A        temp.add(new HighScore(%22BG%22,100,100));*/%0A        %0A%09%09//I don't get this part, getHighScore should return a SortedSet, but isEmpty() is a TreeSet method, How come?%0A%09%09if(score.getHighScore().isEmpty())%7B%0A%09%09%09%0A%09%09%09table.add(%22No HighScores Avalible!%22).expandY();%09%09%09%0A%09%09%09%0A%09%09%7D%0A%09%09else%7B%0A%09%09%09table.row();%0A%09%09%09table.add(%22       Scores    Time    Initials                       Date%22).expand().bottom().left();%0A%09%09%09%0A%09%09%09table.row();%0A%09%09%09%0A%09%09%09for(HighScore s : score.getHighScore())%7B%0A%09%09%09%09%0A%09%09%09%09scoreString.append(s.getPoints());%0A%09%09%09%09scoreString.append(%22          %22);%0A%09%09%09%09scoreString.append(s.getTime());%0A%09%09%09%09scoreString.append(%22          %22);%0A%09%09%09%09scoreString.append(s.getInitials());%0A%09%09%09%09scoreString.append(%22          %22);%0A%09%09%09%09scoreString.append(s.getDate().toString());%0A%09%09%09%09table.add(scoreString.toString());%0A%09%09%09%09%0A%09%09%09%09table.row();%0A%09%09%09%09scoreString = new StringBuilder();%0A%09%09%09%7D%0A%09%09%7D
 %0A
-
         
@@ -2360,16 +2360,16 @@
  skin);%0A
-
         
@@ -2383,16 +2383,37 @@
 dd(back)
+.expandY().colspan(5)
 ;%0A%0A     

Update HighScoresScreen.java