Mercurial > hg > mep
view EndTestPanel.java @ 47:be66ee2fe9fe
Added abstract class EndBlockPanel to deliver end of block messages (e.g. end of practice block).
Added and implemented EndTestPanel which gives "thank you for participating" etc message at end of test.
author | Carl Bussey <c.bussey@se10.qmul.ac.uk> |
---|---|
date | Thu, 13 Jun 2013 18:33:34 +0100 |
parents | |
children |
line wrap: on
line source
/*============================================================================= * File: EndTestPanel.java * Author: Carl Bussey <c.bussey@se10.qmul.ac.uk> * Created: <2013-06-13 15:39:18 marcusp> *============================================================================= */ import java.awt.*; import java.awt.event.*; import javax.swing.*; public class EndTestPanel extends EndBlockPanel { public EndTestPanel(Experiment e){ super(e); setUp("Exit"); } protected String formatMessage() { sb.append("<html><font size=\"+1\" face=\"sans\"><p align=center>"); sb.append("That is the end of the listening activity."); sb.append("<br>"); sb.append("Thank you for participating with our study."); sb.append("<br>"); sb.append("Press the button below to exit."); sb.append("</p></html>"); return sb.toString(); } }