ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/conient/uk/org/iscream/cms/conient/QueueFrame.java
(Generate patch)

Comparing projects/cms/source/conient/uk/org/iscream/cms/conient/QueueFrame.java (file contents):
Revision 1.8 by ajm, Thu Mar 1 17:46:02 2001 UTC vs.
Revision 1.12 by ajm, Mon Mar 19 01:38:16 2001 UTC

# Line 1 | Line 1
1   //---PACKAGE DECLARATION---
2 < package uk.ac.ukc.iscream.conient;
2 > package uk.org.iscream.conient;
3  
4   //---IMPORTS---
5 < import uk.ac.ukc.iscream.util.*;
6 < import uk.ac.ukc.iscream.conient.datacomponents.*;
5 > import uk.org.iscream.util.*;
6 > import uk.org.iscream.conient.datacomponents.*;
7   import javax.swing.*;
8   import javax.swing.border.*;
9   import java.util.*;
# Line 34 | Line 34 | public class QueueFrame extends JFrame {
34      public QueueFrame() {
35          super("Server Queue Status");
36          //addVisibleDataComponent(_conent, new StringDataComponent("Host Name", "packet.attributes.machine_name"));
37 <        
38 <        getContentPane().add(_content, "Center");
37 >        JScrollPane scrollPane = new JScrollPane(_content,JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED , JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
38 >        getContentPane().add(scrollPane, "Center");
39          JButton close = new JButton("Close Window");
40          close.addActionListener(new ActionListener() {
41              public void actionPerformed(ActionEvent e) {
# Line 144 | Line 144 | public class QueueFrame extends JFrame {
144                      // note we ignore all other attributes
145                  }
146                  if(components.containsKey(dataKey)) {
147 <                    ((DataComponent) components.get(dataKey)).setValue(packet.getParam(dataKey));
147 >                    ((DataComponent) components.get(dataKey)).setValue(packet);
148                  }
149              }
150          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines