@SuppressWarnings("rawtypes")
		@Override
		   public Component getListCellRendererComponent(JList list, Object value,
		         int index, boolean isSelected, boolean cellHasFocus) {
		      String text = HTML_1 + String.valueOf(width) + HTML_2 + value.toString()
		            + HTML_3;
		      return super.getListCellRendererComponent(list, text, index, isSelected,
		            cellHasFocus);
		   }

	}
	
	/**
	 * To refresh the public dialog and hand over turn
	 * @author 
	 *
	 */
	class TimerTaskTest extends java.util.TimerTask{  
		  
		@Override  
		public void run() {  
			debate = new Debate();
			Debate debateCurrent = debate.getSpecificDebate(debateSelected.getId());
			// One team has accepted the position
			if (debateCurrent.getCurentTurnTeam().equals(TEAMDEFAULT)) {
				acceptPositionJbtn.setEnabled(false);
			}
			if ((debateCurrent.getCurentTurnTeam().equals(teamType)
					&& (debateSelected.getTeamReps()[0].equals(userLogin.getName())
							|| debateSelected.getTeamReps()[1].equals(userLogin.getName())))) {
				 	handoverTurnJbtn.setEnabled(true);
					debateSelected = debateCurrent;
					DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm"); 
					String currentTime = df.format(new Date());
					try {
						Date d1 = df.parse(debateSelected.getTimeLeft());
						Date d2 = df.parse(currentTime); 
						String maxTime = debateSelected.getMaxTime();
						String[] maxTimeVaue = maxTime.split(":");
						long l=Integer.parseInt(maxTimeVaue[0])*60*60*1000 - (d2.getTime()-d1.getTime());
						long hour = l/(60*60*1000);
						String timeLeft = "";
						if (hour < 10) {
							timeLeft += "0" + hour;
						} else {
							timeLeft += hour;
						}
						long minuts = (l/(60*1000))-hour*60; 
						if (minuts < 10) {
							timeLeft += ":0" + minuts;
						} else {
							timeLeft += ":" + minuts;
						}
						timeLeftJlbl.setText("Time left: " + timeLeft);
					} catch (ParseException e) {
						e.printStackTrace();
					} 
			}
		}