changeset 31:ec628e1d70d1

Place text anchors either end of response scale
author Jeremy Gow <jeremy.gow@gmail.com>
date Tue, 13 Nov 2012 17:36:19 +0000
parents 84d943797cf2
children 01926bcd6016
files Experiment.class ExperimentController.class StimulusPanel.class StimulusPanel.java
diffstat 4 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
Binary file Experiment.class has changed
Binary file ExperimentController.class has changed
Binary file StimulusPanel.class has changed
--- a/StimulusPanel.java	Tue Nov 13 11:46:10 2012 +0000
+++ b/StimulusPanel.java	Tue Nov 13 17:36:19 2012 +0000
@@ -55,6 +55,7 @@
         displayPanel.add(clock, c); 
         
         // Add the response buttons 
+	/*
         JPanel responsePanel = new JPanel(); 
         responsePanel.setLayout (new BorderLayout());
         responsePanel.setBorder(BorderFactory.createRaisedBevelBorder());
@@ -64,7 +65,7 @@
         anchorsPanel.add(new JLabel("                           "), 
                          BorderLayout.CENTER);
         anchorsPanel.add(new JLabel(exp.getHighAnchor()), BorderLayout.EAST);
-        
+	
         JPanel ratingsPanel = new JPanel(); 
         for (int i = 0; i < responseButton.length; i++) { 
             responseButton[i] = new JButton(Integer.toString(i+1)); 
@@ -73,6 +74,19 @@
         }
         responsePanel.add(ratingsPanel, BorderLayout.NORTH); 
         responsePanel.add(anchorsPanel, BorderLayout.SOUTH); 
+	*/
+
+	JPanel responsePanel = new JPanel(); 
+        responsePanel.setLayout(new FlowLayout());
+        responsePanel.setBorder(BorderFactory.createRaisedBevelBorder());
+
+	responsePanel.add(new JLabel(exp.getLowAnchor()));
+        for (int i = 0; i < responseButton.length; i++) { 
+            responseButton[i] = new JButton(Integer.toString(i+1)); 
+            responseButton[i].setFocusPainted(false); 
+            responsePanel.add(responseButton[i]); 
+        }
+        responsePanel.add(new JLabel(exp.getHighAnchor()));
 
         // Questions Panel 
         JPanel questionsPanel = new JPanel();