public void previewBoard() {
String boardName = (String) lisBoardsAvailable.getSelectedValue();
if (lisBoardsAvailable.getSelectedIndex() > 2) {
IBoard board = new Board(Integer.parseInt(texBoardWidth.getText()),
Integer.parseInt(texBoardHeight.getText()));
board.load(boardName + ".board");
if (chkRotateBoard.isSelected()) {
BoardUtilities.flip(board, true, true);
}
MapPreview mapPreview = null;
try {